FW: compile error on template using gcc 3.4.4 that worked for gcc 3.3.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Can anyone help me on this second one?  Can anyone suggest source code
change?

Thanks
karl

________________________________________
From: Karl Kobata [mailto:karl.kobata@xxxxxxxxxxx] 
Sent: Sunday, May 06, 2007 10:51 PM
To: 'gcc-help@xxxxxxxxxxx'
Subject: compile error on template using gcc 3.4.4

Can anyone help me.  I am getting the error messages below for the source
snippet included.  On the previous version of gcc, this error did not occur.
What defaults were assumed on the previous version of the compiler?
Please help.  Please suggest source changes.

Thanks
karl

============== source that is erroring ===============
100 template <class K, class V, class C>
101 class TMap : private TAvlTree<TMapNode<K,V,C> > {
102    bnode_t* Root() {
103       return root;
104    }
========== error messages using gcc 3.4.4 =================
../tmap.h: In member function `bnode_t* TMap<K, V, C>::Root()':
../tmap.h:103: error: `root' undeclared (first use this function)
../tmap.h:103: error: (Each undeclared identifier is reported only once for
each function it appears in.)



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux