FW: compile error on template using gcc 3.4.4 that worked for gcc 3.3.x
Karl Kobata
karl.kobata@syncira.com
Wed May 9 03:22:00 GMT 2007
Can anyone help me on this second one? Can anyone suggest source code
change?
Thanks
karl
________________________________________
From: Karl Kobata [mailto:karl.kobata@syncira.com]
Sent: Sunday, May 06, 2007 10:51 PM
To: 'gcc-help@gcc.gnu.org'
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.)
More information about the Gcc-help
mailing list