This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
C++: Base Initializer, incorrect warning
- To: gcc-bugs at gcc dot gnu dot org
- Subject: C++: Base Initializer, incorrect warning
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Fri, 16 Jun 2000 18:46:57 +0200 (MET DST)
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/