public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17681] New: Bad message about constructor ordering (-Wall)
@ 2004-09-26 19:46 v dot haisman at sh dot cvut dot cz
  2004-09-26 19:54 ` [Bug c++/17681] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-09-26 19:46 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-27 12:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-26 19:46 [Bug c++/17681] New: Bad message about constructor ordering (-Wall) v dot haisman at sh dot cvut dot cz
2004-09-26 19:54 ` [Bug c++/17681] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-09-27  3:24 ` giovannibajo at libero dot it
2004-09-27  7:53 ` nathan at gcc dot gnu dot org
2004-09-27 12:06 ` nathan at gcc dot gnu dot org
2004-09-27 12:10 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).