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

* [Bug c++/17681] [4.0 Regression] Bad message about constructor ordering (-Wall)
  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 ` pinskia at gcc dot gnu dot org
  2004-09-27  3:24 ` giovannibajo at libero dot it
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-26 19:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-26 19:54 -------
Confirmed, this is a regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at codesourcery dot
                   |                            |com
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-26 19:54:34
               date|                            |
            Summary|Bad message about           |[4.0 Regression] Bad message
                   |constructor ordering (-Wall)|about constructor ordering
                   |                            |(-Wall)
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17681


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

* [Bug c++/17681] [4.0 Regression] Bad message about constructor ordering (-Wall)
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-27  3:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-09-27 03:24 -------
Prolly caused by Nathan's patches, as Andrew noticed

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17681


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

* [Bug c++/17681] [4.0 Regression] Bad message about constructor ordering (-Wall)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-27  7:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17681


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

* [Bug c++/17681] [4.0 Regression] Bad message about constructor ordering (-Wall)
  2004-09-26 19:46 [Bug c++/17681] New: Bad message about constructor ordering (-Wall) v dot haisman at sh dot cvut dot cz
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-27 12:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2004-09-27 12:06 -------
2004-09-27  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/17681
	* error.c (dump_type): Change TREE_VEC case into TREE_BINFO.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17681


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

* [Bug c++/17681] [4.0 Regression] Bad message about constructor ordering (-Wall)
  2004-09-26 19:46 [Bug c++/17681] New: Bad message about constructor ordering (-Wall) v dot haisman at sh dot cvut dot cz
                   ` (3 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-27 12:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-27 12:10 -------
Subject: Bug 17681

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	nathan@gcc.gnu.org	2004-09-27 12:10:22

Modified files:
	gcc/cp         : error.c ChangeLog 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/other: error9.C 

Log message:
	cp:
	PR c++/17681
	* error.c (dump_type): Change TREE_VEC case into TREE_BINFO.
	testsuite:
	PR c++/17681
	* g++.dg/other/error9.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&r1=1.263&r2=1.264
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4386&r2=1.4387
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/error9.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4355&r2=1.4356



-- 


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).