[Bug c++/17681] New: Bad message about constructor ordering (-Wall)
v dot haisman at sh dot cvut dot cz
gcc-bugzilla@gcc.gnu.org
Sun Sep 26 19:46:00 GMT 2004
There is something wrong with the warning about constructor ordering:
wilx@logout:::~/tmp> cat order.cxx
struct A
{ };
struct B
{ };
struct C : public B, public A
{
C ()
: A(), B()
{ }
};
wilx@logout:::~/tmp> g++ -Wall -c order.cxx
order.cxx: In constructor `C::C()':
order.cxx:10: warning: base `#`tree_binfo' not supported by dump_type#<type
error>' will be initialized after
order.cxx:10: warning: base `#`tree_binfo' not supported by dump_type#<type
error>'
order.cxx:9: warning: when initialized here
wilx@logout:::~/tmp> g++ -v
Reading specs from /home/4/wilx/lib/gcc/i386-unknown-freebsd4.10/4.0.0/specs
Configured with: ../srcdir/configure --disable-nls
--enable-version-specific-runtime-libs --enable-dwarf2 --with-cpu=pentium3
--with-arch=pentium3 --with-system-zlib --disable-shared --prefix=/home/4/wilx
--enable-languages=c,c++,objc --disable-sjlj-exceptions
--enable-shared=libstdc++ --enable-shared=libobjc --with-gc=zone
Thread model: posix
gcc version 4.0.0 20040926 (experimental)
--
Summary: Bad message about constructor ordering (-Wall)
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: v dot haisman at sh dot cvut dot cz
CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
cvut dot cz
GCC build triplet: i386-unknown-freebsd4.10
GCC host triplet: i386-unknown-freebsd4.10
GCC target triplet: i386-unknown-freebsd4.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17681
More information about the Gcc-bugs
mailing list