public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance
@ 2006-07-05 0:05 reichelt at gcc dot gnu dot org
2006-07-05 0:14 ` [Bug c++/28259] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-05 0:05 UTC (permalink / raw)
To: gcc-bugs
The following invalid testcase triggers an ICE since GCC 3.4.0:
=========================================
struct A
{
virtual A* foo();
};
struct B : virtual A;
struct C : A
{
virtual B* foo();
};
B* C::foo() { return 0; }
=========================================
bug.cc:6: error: expected `{' before ';' token
bug.cc:12: 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=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28259] [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
@ 2006-07-05 0:14 ` pinskia at gcc dot gnu dot org
2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-05 0:14 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28259] [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
2006-07-05 0:14 ` [Bug c++/28259] " pinskia at gcc dot gnu dot org
@ 2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
2006-08-01 23:45 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:06 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=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28259] [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
2006-07-05 0:14 ` [Bug c++/28259] " pinskia at gcc dot gnu dot org
2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
@ 2006-08-01 23:45 ` reichelt at gcc dot gnu dot org
2006-08-01 23:50 ` [Bug c++/28259] [4.0/4.1 " reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-01 23:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from reichelt at gcc dot gnu dot org 2006-08-01 23:45 -------
Subject: Bug 28259
Author: reichelt
Date: Tue Aug 1 23:45:11 2006
New Revision: 115866
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115866
Log:
PR c++/28250
PR c++/28257
PR c++/28259
PR c++/28267
* toplev.c (compile_file): Return early on errorcount or sorrycount.
* cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
(cgraph_optimize): Likewise.
PR c++/28250
* g++.dg/eh/catch4.C: New test.
PR c++/28257
* g++.dg/other/qual1.C: New test.
PR c++/28259
* g++.dg/inherit/error2.C: New test.
PR c++/28267
* g++.dg/other/new1.C: New test.
* g++.dg/warn/pr23075.C: Remove obsolete test.
* g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker.
* g++.old-deja/g++.jason/report.C: Remove dg-warning marker.
Added:
trunk/gcc/testsuite/g++.dg/eh/catch4.C
trunk/gcc/testsuite/g++.dg/inherit/error2.C
trunk/gcc/testsuite/g++.dg/other/new1.C
trunk/gcc/testsuite/g++.dg/other/qual1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/warn/pr23075.C
trunk/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
trunk/gcc/testsuite/g++.old-deja/g++.jason/report.C
trunk/gcc/toplev.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28259] [4.0/4.1 regression] ICE with invalid virtual inheritance
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-01 23:45 ` reichelt at gcc dot gnu dot org
@ 2006-08-01 23:50 ` reichelt at gcc dot gnu dot org
2006-08-03 11:34 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-01 23:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-08-01 23:50 -------
Fixed on mainline.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
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=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28259] [4.0/4.1 regression] ICE with invalid virtual inheritance
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-01 23:50 ` [Bug c++/28259] [4.0/4.1 " reichelt at gcc dot gnu dot org
@ 2006-08-03 11:34 ` reichelt at gcc dot gnu dot org
2006-08-03 11:36 ` reichelt at gcc dot gnu dot org
2006-08-03 12:05 ` [Bug c++/28259] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-03 11:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-08-03 11:34 -------
Subject: Bug 28259
Author: reichelt
Date: Thu Aug 3 11:33:49 2006
New Revision: 115900
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115900
Log:
PR c++/28257
PR c++/28259
PR c++/28267
* toplev.c (compile_file): Return early on errorcount or sorrycount.
* cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
(cgraph_optimize): Likewise.
PR c++/28250
* g++.dg/eh/catch4.C: New test.
PR c++/28257
* g++.dg/other/qual1.C: New test.
PR c++/28259
* g++.dg/inherit/error2.C: New test.
PR c++/28267
* g++.dg/other/new1.C: New test.
* g++.dg/warn/pr23075.C: Remove obsolete test.
* g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker.
* g++.old-deja/g++.jason/report.C: Remove dg-warning marker.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/eh/catch4.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/error2.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/new1.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/qual1.C
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/cgraphunit.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/warn/pr23075.C
branches/gcc-4_1-branch/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
branches/gcc-4_1-branch/gcc/testsuite/g++.old-deja/g++.jason/report.C
branches/gcc-4_1-branch/gcc/toplev.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28259] [4.0/4.1 regression] ICE with invalid virtual inheritance
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-08-03 11:34 ` reichelt at gcc dot gnu dot org
@ 2006-08-03 11:36 ` reichelt at gcc dot gnu dot org
2006-08-03 12:05 ` [Bug c++/28259] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-03 11:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from reichelt at gcc dot gnu dot org 2006-08-03 11:36 -------
Subject: Bug 28259
Author: reichelt
Date: Thu Aug 3 11:35:52 2006
New Revision: 115901
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115901
Log:
PR c++/28257
PR c++/28259
PR c++/28267
* toplev.c (compile_file): Return early on errorcount or sorrycount.
* cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
(cgraph_optimize): Likewise.
PR c++/28250
* g++.dg/eh/catch4.C: New test.
PR c++/28257
* g++.dg/other/qual1.C: New test.
PR c++/28259
* g++.dg/inherit/error2.C: New test.
PR c++/28267
* g++.dg/other/new1.C: New test.
* g++.dg/warn/pr23075.C: Remove obsolete test.
* g++.old-deja/g++.brendan/crash52.C: Remove dg-warning marker.
* g++.old-deja/g++.jason/report.C: Remove dg-warning marker.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/eh/catch4.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/error2.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/new1.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/qual1.C
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/cgraphunit.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/warn/pr23075.C
branches/gcc-4_0-branch/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
branches/gcc-4_0-branch/gcc/testsuite/g++.old-deja/g++.jason/report.C
branches/gcc-4_0-branch/gcc/toplev.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28259] [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-08-03 11:36 ` reichelt at gcc dot gnu dot org
@ 2006-08-03 12:05 ` reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-03 12:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-08-03 12:04 -------
Now also fixed on 4.1 branch and 4.0 branch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Summary|[4.0/4.1 regression] ICE |[4.0/4.1/4.2 regression] ICE
|with invalid virtual |with invalid virtual
|inheritance |inheritance
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28259
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-08-03 12:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 0:05 [Bug c++/28259] New: [4.0/4.1/4.2 regression] ICE with invalid virtual inheritance reichelt at gcc dot gnu dot org
2006-07-05 0:14 ` [Bug c++/28259] " pinskia at gcc dot gnu dot org
2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
2006-08-01 23:45 ` reichelt at gcc dot gnu dot org
2006-08-01 23:50 ` [Bug c++/28259] [4.0/4.1 " reichelt at gcc dot gnu dot org
2006-08-03 11:34 ` reichelt at gcc dot gnu dot org
2006-08-03 11:36 ` reichelt at gcc dot gnu dot org
2006-08-03 12:05 ` [Bug c++/28259] [4.0/4.1/4.2 " reichelt 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).