public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost
@ 2004-09-22 20:23 bangerth at dealii dot org
  2004-09-22 20:51 ` [Bug c++/17620] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-09-22 20:23 UTC (permalink / raw)
  To: gcc-bugs

This is a recent regression that breaks compiling boost: 
------------------- 
template <bool> struct S {}; 
 
typedef S<false> B; 
 
struct D1 : B {}; 
struct D2 : B {}; 
-------------------- 
g/x> /home/bangerth/bin/gcc-4.0-pre/bin/c++ -c x.cc 
x.cc:6: error: duplicate base type `B' invalid 
 
Needless to say that the error message is completely bogus. 
 
W.

-- 
           Summary: [4.0 regression] Bogus error with duplicate base class
                    breaks boost
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
@ 2004-09-22 20:51 ` pinskia at gcc dot gnu dot org
  2004-09-22 20:54 ` bangerth at dealii dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 20:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 20:51 -------
A very recent regression:
2004-09-21-161001 even passes.

-- 


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


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
  2004-09-22 20:51 ` [Bug c++/17620] " pinskia at gcc dot gnu dot org
@ 2004-09-22 20:54 ` bangerth at dealii dot org
  2004-09-22 20:55 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-09-22 20:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-09-22 20:54 -------
The top of my cp/Changelog is  
  2004-09-22  Nathan Sidwell  <nathan@codesourcery.com> 
	* cp-tree.h (unemitted_tinfo_decls): Make a VEC(tree). 
  ... 
What is yours? 
 
W. 

-- 


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


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
  2004-09-22 20:51 ` [Bug c++/17620] " pinskia at gcc dot gnu dot org
  2004-09-22 20:54 ` bangerth at dealii dot org
@ 2004-09-22 20:55 ` pinskia at gcc dot gnu dot org
  2004-09-22 21:03 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 20:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 20:55 -------
That was from Phil's regression hunter.

-- 


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


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
                   ` (2 preceding siblings ...)
  2004-09-22 20:55 ` pinskia at gcc dot gnu dot org
@ 2004-09-22 21:03 ` pinskia at gcc dot gnu dot org
  2004-09-23  2:13 ` giovannibajo at libero dot it
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 21:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 21:03 -------
Confirmed.
Most likely caused by this part of the patch:
        * decl.c (xref_basetypes): Use TYPE_MARKED_P. Determine diamond
        shaped and repeated base properties.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at codesourcery dot
                   |                            |com
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-22 21:03:28
               date|                            |
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
                   ` (3 preceding siblings ...)
  2004-09-22 21:03 ` pinskia at gcc dot gnu dot org
@ 2004-09-23  2:13 ` giovannibajo at libero dot it
  2004-09-23  6:46 ` nathan at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: giovannibajo at libero dot it @ 2004-09-23  2:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-09-23 02:13 -------
This also causes regressions on (at least) x86-64:
http://gcc.gnu.org/ml/gcc/2004-09/msg01305.html


-- 


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


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
                   ` (4 preceding siblings ...)
  2004-09-23  2:13 ` giovannibajo at libero dot it
@ 2004-09-23  6:46 ` nathan at gcc dot gnu dot org
  2004-09-23 10:06 ` nathan at gcc dot gnu dot org
  2004-09-23 10:09 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-23  6:46 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=17620


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
                   ` (5 preceding siblings ...)
  2004-09-23  6:46 ` nathan at gcc dot gnu dot org
@ 2004-09-23 10:06 ` nathan at gcc dot gnu dot org
  2004-09-23 10:09 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-23 10:06 UTC (permalink / raw)
  To: gcc-bugs


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

	PR c++/17620
	* decl.c (xref_basetypes): Look through typedefs before checking
	for duplicate base.


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


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


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

* [Bug c++/17620] [4.0 regression] Bogus error with duplicate base class breaks boost
  2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
                   ` (6 preceding siblings ...)
  2004-09-23 10:06 ` nathan at gcc dot gnu dot org
@ 2004-09-23 10:09 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-23 10:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-23 10:09 -------
Subject: Bug 17620

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

Modified files:
	gcc/cp         : ChangeLog decl.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/inherit: base2.C 

Log message:
	cp:
	PR c++/17620
	* decl.c (xref_basetypes): Look through typedefs before checking
	for duplicate base.
	testsuite:
	PR c++/17620
	* g++.dg/inherit/base2.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4377&r2=1.4378
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1302&r2=1.1303
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4333&r2=1.4334
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/base2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22 20:23 [Bug c++/17620] New: [4.0 regression] Bogus error with duplicate base class breaks boost bangerth at dealii dot org
2004-09-22 20:51 ` [Bug c++/17620] " pinskia at gcc dot gnu dot org
2004-09-22 20:54 ` bangerth at dealii dot org
2004-09-22 20:55 ` pinskia at gcc dot gnu dot org
2004-09-22 21:03 ` pinskia at gcc dot gnu dot org
2004-09-23  2:13 ` giovannibajo at libero dot it
2004-09-23  6:46 ` nathan at gcc dot gnu dot org
2004-09-23 10:06 ` nathan at gcc dot gnu dot org
2004-09-23 10:09 ` 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).