public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25856] New: ICE segmentation fault on invalid code
@ 2006-01-19 11:16 wouter dot vermaelen at pi dot be
2006-01-19 11:41 ` [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class reichelt at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: wouter dot vermaelen at pi dot be @ 2006-01-19 11:16 UTC (permalink / raw)
To: gcc-bugs
The following invalid code triggers an
internal compiler error: Segmentation fault
I accidentally found this while reducing another testcase with the delta script
(and a faulty check.sh script), so I guess this has little real world
relevance. But still gcc shouldn't crash.
I can reproduce this with SVN version of 2006/01/18.
---------------------
class A;
template<class T>
}
A::~A()
{
---------------------
--
Summary: ICE segmentation fault on invalid code
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wouter dot vermaelen at pi dot be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25856
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class
2006-01-19 11:16 [Bug c++/25856] New: ICE segmentation fault on invalid code wouter dot vermaelen at pi dot be
@ 2006-01-19 11:41 ` reichelt at gcc dot gnu dot org
2006-01-21 4:01 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-19 11:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from reichelt at gcc dot gnu dot org 2006-01-19 11:41 -------
Confirmed.
Here's something "less" invalid thar also causes an ICE:
==================
struct A;
A::~A() {}
==================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Severity|minor |normal
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |error-recovery, ice-on-
| |invalid-code, monitored
Known to fail| |4.0.0 4.0.2 4.1.0 4.2.0
Known to work| |3.4.5
Last reconfirmed|0000-00-00 00:00:00 |2006-01-19 11:41:15
date| |
Summary|ICE segmentation fault on |[4.0/4.1/4.2 regression] ICE
|invalid code |defining destructor for
| |incomplete class
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25856
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class
2006-01-19 11:16 [Bug c++/25856] New: ICE segmentation fault on invalid code wouter dot vermaelen at pi dot be
2006-01-19 11:41 ` [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class reichelt at gcc dot gnu dot org
@ 2006-01-21 4:01 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:41 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-01-21 4:01 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25856
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class
2006-01-19 11:16 [Bug c++/25856] New: ICE segmentation fault on invalid code wouter dot vermaelen at pi dot be
2006-01-19 11:41 ` [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class reichelt at gcc dot gnu dot org
2006-01-21 4:01 ` mmitchel at gcc dot gnu dot org
@ 2006-01-22 0:41 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-01-22 0:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-01-22 00:41 -------
Subject: Bug 25856
Author: mmitchel
Date: Sun Jan 22 00:40:56 2006
New Revision: 110082
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110082
Log:
PR c++/25895
* class.c (build_base_path): Generate a NOP_EXPR instead of a
COMPONENT_REF if the base and derived classes are at the same
address.
PR c++/25856
* decl.c (begin_destructor_body): Robustify.
PR c++/25858
* parser.c (cp_parser_direct_declarator): Robustify.
PR c++/25895
* g++.dg/inherit/conv2.C: New test.
PR c++/25856
* g++.dg/parse/dtor7.C: New test.
PR c++/25858
* g++.dg/template/crash44.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/inherit/conv2.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/dtor7.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/template/crash44.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/class.c
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25856
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class
2006-01-19 11:16 [Bug c++/25856] New: ICE segmentation fault on invalid code wouter dot vermaelen at pi dot be
` (2 preceding siblings ...)
2006-01-22 0:41 ` mmitchel at gcc dot gnu dot org
@ 2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:52 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-01-22 0:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-01-22 00:42 -------
Subject: Bug 25856
Author: mmitchel
Date: Sun Jan 22 00:41:58 2006
New Revision: 110083
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110083
Log:
PR c++/25895
* class.c (build_base_path): Generate a NOP_EXPR instead of a
COMPONENT_REF if the base and derived classes are at the same
address.
PR c++/25856
* decl.c (begin_destructor_body): Robustify.
PR c++/25858
* parser.c (cp_parser_direct_declarator): Robustify.
PR c++/25895
* g++.dg/inherit/conv2.C: New test.
PR c++/25856
* g++.dg/parse/dtor7.C: New test.
PR c++/25858
* g++.dg/template/crash44.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/conv2.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/dtor7.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash44.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/class.c
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25856
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class
2006-01-19 11:16 [Bug c++/25856] New: ICE segmentation fault on invalid code wouter dot vermaelen at pi dot be
` (3 preceding siblings ...)
2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
@ 2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:52 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-01-22 0:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-01-22 00:42 -------
Subject: Bug 25856
Author: mmitchel
Date: Sun Jan 22 00:42:40 2006
New Revision: 110084
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110084
Log:
PR c++/25895
* class.c (build_base_path): Generate a NOP_EXPR instead of a
COMPONENT_REF if the base and derived classes are at the same
address.
PR c++/25856
* decl.c (begin_destructor_body): Robustify.
PR c++/25858
* parser.c (cp_parser_direct_declarator): Robustify.
PR c++/25895
* g++.dg/inherit/conv2.C: New test.
PR c++/25856
* g++.dg/parse/dtor7.C: New test.
PR c++/25858
* g++.dg/template/crash44.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/inherit/conv2.C
trunk/gcc/testsuite/g++.dg/parse/dtor7.C
trunk/gcc/testsuite/g++.dg/template/crash44.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/decl.c
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25856
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class
2006-01-19 11:16 [Bug c++/25856] New: ICE segmentation fault on invalid code wouter dot vermaelen at pi dot be
` (4 preceding siblings ...)
2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
@ 2006-01-22 0:52 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-01-22 0:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-01-22 00:52 -------
Fixed in 4.0.3.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25856
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-01-22 0:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 11:16 [Bug c++/25856] New: ICE segmentation fault on invalid code wouter dot vermaelen at pi dot be
2006-01-19 11:41 ` [Bug c++/25856] [4.0/4.1/4.2 regression] ICE defining destructor for incomplete class reichelt at gcc dot gnu dot org
2006-01-21 4:01 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:41 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:42 ` mmitchel at gcc dot gnu dot org
2006-01-22 0:52 ` mmitchel 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).