public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27952]  New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
@ 2006-06-08 10:43 reichelt at gcc dot gnu dot org
  2006-06-08 14:23 ` [Bug c++/27952] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-06-08 10:43 UTC (permalink / raw)
  To: gcc-bugs

The following testcase with invalid virtual inheritance ICEs since GCC 4.0.0:

==================================
struct A
{
    virtual ~A() {}
};

struct B : A, virtual A {};

struct C : A, B {};

C c;
==================================

bug.cc:6: error: duplicate base type 'A' invalid
bug.cc:8: warning: direct base 'A' inaccessible in 'C' due to ambiguity
bug.cc: In destructor 'virtual C::~C()':
bug.cc:8: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

A more reduced version crashes since GCC 4.1.0:

==================================
struct A {};

struct B : A, virtual A {};

struct C : B {};
==================================

bug.cc:7: error: duplicate base type 'A' invalid
bug.cc:9: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 Regression] ICE with invalid virtual
                    inheritance
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
@ 2006-06-08 14:23 ` pinskia at gcc dot gnu dot org
  2006-06-10 14:45 ` patchapp at dberlin dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-08 14:23 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
  2006-06-08 14:23 ` [Bug c++/27952] " pinskia at gcc dot gnu dot org
@ 2006-06-10 14:45 ` patchapp at dberlin dot org
  2006-06-15 23:51 ` mmitchel at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: patchapp at dberlin dot org @ 2006-06-10 14:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from patchapp at dberlin dot org  2006-06-10 14:10 -------
Subject: Bug number PR c++/27952

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-06/msg00536.html


-- 


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
  2006-06-08 14:23 ` [Bug c++/27952] " pinskia at gcc dot gnu dot org
  2006-06-10 14:45 ` patchapp at dberlin dot org
@ 2006-06-15 23:51 ` mmitchel at gcc dot gnu dot org
  2006-07-17  3:25 ` mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-15 23:51 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-06-15 23:51 ` mmitchel at gcc dot gnu dot org
@ 2006-07-17  3:25 ` mmitchel at gcc dot gnu dot org
  2006-09-03  6:30 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17  3:25 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-07-17  3:25 ` mmitchel at gcc dot gnu dot org
@ 2006-09-03  6:30 ` pinskia at gcc dot gnu dot org
  2006-10-17 18:15 ` lmillward at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-03  6:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-09-03 06:30 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.1.0 4.2.0
      Known to work|3.3.3                       |3.3.3 3.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2006-09-03 06:30:03
               date|                            |


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-09-03  6:30 ` pinskia at gcc dot gnu dot org
@ 2006-10-17 18:15 ` lmillward at gcc dot gnu dot org
  2006-10-17 18:37 ` patchapp at dberlin dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-10-17 18:15 UTC (permalink / raw)
  To: gcc-bugs



-- 

lmillward at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |lmillward at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-09-03 06:30:03         |2006-10-17 18:15:01
               date|                            |


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-10-17 18:15 ` lmillward at gcc dot gnu dot org
@ 2006-10-17 18:37 ` patchapp at dberlin dot org
  2006-10-17 23:01 ` patchapp at dberlin dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-17 18:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2006-10-17 18:37 -------
Subject: Bug number PR c++/27952

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00862.html


-- 


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-10-17 18:37 ` patchapp at dberlin dot org
@ 2006-10-17 23:01 ` patchapp at dberlin dot org
  2006-10-17 23:22 ` lmillward at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-17 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from patchapp at dberlin dot org  2006-10-17 23:01 -------
Subject: Bug number PR c++/27952

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00878.html


-- 


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


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

* [Bug c++/27952] [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-10-17 23:01 ` patchapp at dberlin dot org
@ 2006-10-17 23:22 ` lmillward at gcc dot gnu dot org
  2006-10-17 23:23 ` [Bug c++/27952] [4.0/4.1 " lmillward at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-10-17 23:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from lmillward at gcc dot gnu dot org  2006-10-17 23:22 -------
Subject: Bug 27952

Author: lmillward
Date: Tue Oct 17 23:22:14 2006
New Revision: 117839

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117839
Log:
        PR c++/27952
        * cp-tree.h (xref_basetypes): Return bool instead of void.
        * decl.c (xref_basetypes): Adjust definition. Return false
        if the class bases are invalid.
        * parser.c (cp_parser_class_head): Check the return value
        from xref_basetypes.

        * g++.dg/inherit/virtual1.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/inherit/virtual1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27952] [4.0/4.1 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-10-17 23:22 ` lmillward at gcc dot gnu dot org
@ 2006-10-17 23:23 ` lmillward at gcc dot gnu dot org
  2007-02-03 17:35 ` gdr at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-10-17 23:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from lmillward at gcc dot gnu dot org  2006-10-17 23:23 -------
Fixed on mainline.


-- 

lmillward at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|lmillward at gcc dot gnu dot|unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.0/4.1/4.2 Regression] ICE|[4.0/4.1 Regression] ICE
                   |with invalid virtual        |with invalid virtual
                   |inheritance                 |inheritance


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


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

* [Bug c++/27952] [4.0/4.1 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-10-17 23:23 ` [Bug c++/27952] [4.0/4.1 " lmillward at gcc dot gnu dot org
@ 2007-02-03 17:35 ` gdr at gcc dot gnu dot org
  2007-02-03 20:43 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 17:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from gdr at gcc dot gnu dot org  2007-02-03 17:35 -------
Won't fix in GCC-4.0.x.  Adjusting milestone.


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.4                       |4.1.3


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


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

* [Bug c++/27952] [4.0/4.1 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2007-02-03 17:35 ` gdr at gcc dot gnu dot org
@ 2007-02-03 20:43 ` pinskia at gcc dot gnu dot org
  2007-02-14  9:24 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:35 ` [Bug c++/27952] [4.1 " jsm28 at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 20:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.3                       |4.1.2


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


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

* [Bug c++/27952] [4.0/4.1 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2007-02-03 20:43 ` pinskia at gcc dot gnu dot org
@ 2007-02-14  9:24 ` mmitchel at gcc dot gnu dot org
  2008-07-04 15:35 ` [Bug c++/27952] [4.1 " jsm28 at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14  9:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.2                       |4.1.3


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


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

* [Bug c++/27952] [4.1 Regression] ICE with invalid virtual inheritance
  2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2007-02-14  9:24 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 15:35 ` jsm28 at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jsm28 at gcc dot gnu dot org  2008-07-04 15:35 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.0.4 4.1.0 4.2.0           |4.0.4 4.1.0 4.1.3
      Known to work|3.3.3 3.2.3                 |3.3.3 3.2.3 4.2.0
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.2.0


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


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

end of thread, other threads:[~2008-07-04 15:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-08 10:43 [Bug c++/27952] New: [4.0/4.1/4.2 Regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
2006-06-08 14:23 ` [Bug c++/27952] " pinskia at gcc dot gnu dot org
2006-06-10 14:45 ` patchapp at dberlin dot org
2006-06-15 23:51 ` mmitchel at gcc dot gnu dot org
2006-07-17  3:25 ` mmitchel at gcc dot gnu dot org
2006-09-03  6:30 ` pinskia at gcc dot gnu dot org
2006-10-17 18:15 ` lmillward at gcc dot gnu dot org
2006-10-17 18:37 ` patchapp at dberlin dot org
2006-10-17 23:01 ` patchapp at dberlin dot org
2006-10-17 23:22 ` lmillward at gcc dot gnu dot org
2006-10-17 23:23 ` [Bug c++/27952] [4.0/4.1 " lmillward at gcc dot gnu dot org
2007-02-03 17:35 ` gdr at gcc dot gnu dot org
2007-02-03 20:43 ` pinskia at gcc dot gnu dot org
2007-02-14  9:24 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:35 ` [Bug c++/27952] [4.1 " jsm28 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).