public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28740]  New: [4.0/4.1/4.2 regression] ICE with invalid inheritance
@ 2006-08-15 18:56 reichelt at gcc dot gnu dot org
  2006-08-15 18:57 ` [Bug c++/28740] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 18:56 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 4.0.0:

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

struct B : A A {};

A foo(const B &b)
{
  return b;
}
=========================================

bug.cc:3: error: expected `{' before 'A'
bug.cc:3: error: function definition does not declare parameters
bug.cc: In function 'A foo(const B&)':
bug.cc:7: internal compiler error: in build_simple_base_path, at cp/class.c:475
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with invalid inheritance
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: minor
          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=28740


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

* [Bug c++/28740] [4.0/4.1/4.2 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
@ 2006-08-15 18:57 ` reichelt at gcc dot gnu dot org
  2006-08-18  4:43 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-15 18:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28740] [4.0/4.1/4.2 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
  2006-08-15 18:57 ` [Bug c++/28740] " reichelt at gcc dot gnu dot org
@ 2006-08-18  4:43 ` pinskia at gcc dot gnu dot org
  2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-18  4:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-08-18 04:43 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-18 04:43:46
               date|                            |


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


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

* [Bug c++/28740] [4.0/4.1/4.2 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
  2006-08-15 18:57 ` [Bug c++/28740] " reichelt at gcc dot gnu dot org
  2006-08-18  4:43 ` pinskia at gcc dot gnu dot org
@ 2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
  2006-12-02 18:56 ` [Bug c++/28740] [4.0 " reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/28740] [4.0 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
@ 2006-12-02 18:56 ` reichelt at gcc dot gnu dot org
  2006-12-03 13:12 ` lmillward at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-12-02 18:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-12-02 18:56 -------
Fixed on mainline, 4.2 branch, and 4.1 branch by Lee's patch for PR29022.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1/4.2/4.3 regression]|[4.0 regression] ICE with
                   |ICE with invalid inheritance|invalid inheritance


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


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

* [Bug c++/28740] [4.0 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-12-02 18:56 ` [Bug c++/28740] [4.0 " reichelt at gcc dot gnu dot org
@ 2006-12-03 13:12 ` lmillward at gcc dot gnu dot org
  2006-12-03 13:13 ` lmillward at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-12-03 13:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from lmillward at gcc dot gnu dot org  2006-12-03 13:12 -------
Subject: Bug 28740

Author: lmillward
Date: Sun Dec  3 13:11:51 2006
New Revision: 119463

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119463
Log:
        PR c++/29022
        PR c++/27316
        PR c++/28740
        * parser.c (cp_parser_class_head): Move processing
        of any base classes to...
        (cp_parser_class_specifier) ...here. Take an extra
        tree* parameter for the base classes. Only process
        them if the opening brace was found.

        PR c++/29022
        * g++.dg/inherit/virtual1.C: New test.
        * g++.dg/inherit/virtual2.C: Likewise.

        PR c++/27316
        * g++.dg/inherit/error3.C: New test.

        PR c++/28740
        * g++.dg/inherit/error4.C: New test. 


Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/error3.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/error4.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/virtual1.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/virtual2.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/parser.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/error2.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/instantiate1.C
    branches/gcc-4_0-branch/gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C


-- 


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


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

* [Bug c++/28740] [4.0 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-12-03 13:12 ` lmillward at gcc dot gnu dot org
@ 2006-12-03 13:13 ` lmillward at gcc dot gnu dot org
  2006-12-13 13:26 ` lmillward at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-12-03 13:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from lmillward at gcc dot gnu dot org  2006-12-03 13:13 -------
Fixed in 4.0.4 as well.


-- 

lmillward at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28740] [4.0 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-12-03 13:13 ` lmillward at gcc dot gnu dot org
@ 2006-12-13 13:26 ` lmillward at gcc dot gnu dot org
  2006-12-13 13:59 ` lmillward at gcc dot gnu dot org
  2006-12-13 14:29 ` lmillward at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-12-13 13:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from lmillward at gcc dot gnu dot org  2006-12-13 13:26 -------
Subject: Bug 28740

Author: lmillward
Date: Wed Dec 13 13:25:47 2006
New Revision: 119830

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119830
Log:
        PR c++27316
        * g++.dg/inherit/error3.C: New test.

        PR c++/28740
        * g++.dg/inherit/error4.C: New test. 


Added:
    trunk/gcc/testsuite/g++.dg/inherit/error3.C
    trunk/gcc/testsuite/g++.dg/inherit/error4.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28740] [4.0 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-12-13 13:26 ` lmillward at gcc dot gnu dot org
@ 2006-12-13 13:59 ` lmillward at gcc dot gnu dot org
  2006-12-13 14:29 ` lmillward at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-12-13 13:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from lmillward at gcc dot gnu dot org  2006-12-13 13:59 -------
Subject: Bug 28740

Author: lmillward
Date: Wed Dec 13 13:58:43 2006
New Revision: 119831

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119831
Log:
        PR c++/27316
        * g++.dg/inherit/error3.C: New test

        PR c++/28740
        * g++.dg/inherit/error4.C: New test


Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/inherit/error3.C
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/inherit/error4.C
Modified:
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28740] [4.0 regression] ICE with invalid inheritance
  2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-12-13 13:59 ` lmillward at gcc dot gnu dot org
@ 2006-12-13 14:29 ` lmillward at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-12-13 14:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from lmillward at gcc dot gnu dot org  2006-12-13 14:29 -------
Subject: Bug 28740

Author: lmillward
Date: Wed Dec 13 14:28:47 2006
New Revision: 119833

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119833
Log:
        PR c++27316
        * g++.dg/inherit/error3.C: New test.

        PR c++/28740
        * g++.dg/inherit/error4.C: New test. 


Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/error3.C
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/error4.C
Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2006-12-13 14:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-15 18:56 [Bug c++/28740] New: [4.0/4.1/4.2 regression] ICE with invalid inheritance reichelt at gcc dot gnu dot org
2006-08-15 18:57 ` [Bug c++/28740] " reichelt at gcc dot gnu dot org
2006-08-18  4:43 ` pinskia at gcc dot gnu dot org
2006-08-20 22:43 ` mmitchel at gcc dot gnu dot org
2006-12-02 18:56 ` [Bug c++/28740] [4.0 " reichelt at gcc dot gnu dot org
2006-12-03 13:12 ` lmillward at gcc dot gnu dot org
2006-12-03 13:13 ` lmillward at gcc dot gnu dot org
2006-12-13 13:26 ` lmillward at gcc dot gnu dot org
2006-12-13 13:59 ` lmillward at gcc dot gnu dot org
2006-12-13 14:29 ` lmillward 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).