C++: Base Initializer, incorrect warning
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Fri Jun 16 09:47:00 GMT 2000
The current CVS version of g++ started to complain
nunki[150]% gccvs x.cc -Wall
x.cc: In method `TLITERAL<T>::TLITERAL ()':
x.cc:9: warning: base initializer for `T'
x.cc:9: warning: will be re-ordered to precede member
...about the following snippet:
template <class T>
class TLITERAL : public T
{
bool neg;
public:
TLITERAL()
: T(), neg(false)
{
}
};
Am I getting crazy or *isn't* my base initializer already before the
member initializer? Maaaark! =:-o
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
More information about the Gcc-bugs
mailing list