public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39225] New: ICE if destructor doen't match class name
@ 2009-02-18 7:54 christi at uni-hd dot de
2009-02-18 7:55 ` [Bug c++/39225] " christi at uni-hd dot de
` (15 more replies)
0 siblings, 16 replies; 17+ messages in thread
From: christi at uni-hd dot de @ 2009-02-18 7:54 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 942 bytes --]
If the constructor of a class does not match the class name, the compiler dies
with a segfault.
I'll attach an example program.
running
> g++ test.cc
test.cc:6: internal compiler error: Segmentation fault
will already trigger the bug.
The source code is not valid code, but with previous versions (e.g. 4.2) I got
a meaningful error message:
> g++-4.2 test.cc
test.cc:6: error: expected class-name before â(â token
Cheers
Christian
--
Summary: ICE if destructor doen't match class name
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: christi at uni-hd dot de
GCC build triplet: i386-pc-linux-gnu
GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
@ 2009-02-18 7:55 ` christi at uni-hd dot de
2009-02-18 10:12 ` rguenth at gcc dot gnu dot org
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: christi at uni-hd dot de @ 2009-02-18 7:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from christi at uni-hd dot de 2009-02-18 07:55 -------
Created an attachment (id=17319)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17319&action=view)
example to trigger the bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
2009-02-18 7:55 ` [Bug c++/39225] " christi at uni-hd dot de
@ 2009-02-18 10:12 ` rguenth at gcc dot gnu dot org
2009-02-18 11:10 ` christi at uni-hd dot de
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-18 10:12 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 997 bytes --]
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-02-18 10:11 -------
It works for me with the release-checking built 4.3.3 release (as well as
4.3.0, 4.3.1 and 4.3.2). With the branch r143959 and checking enabled it gives
test.cc:6: internal compiler error: tree check: expected class type, have
exceptional (identifier_node) in constructor_name_full, at
cp/name-lookup.c:1715
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
so I'm not sure if this is a regression.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking, ice-on-
| |invalid-code
Known to fail| |4.3.4 4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
2009-02-18 7:55 ` [Bug c++/39225] " christi at uni-hd dot de
2009-02-18 10:12 ` rguenth at gcc dot gnu dot org
@ 2009-02-18 11:10 ` christi at uni-hd dot de
2009-02-18 18:46 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: christi at uni-hd dot de @ 2009-02-18 11:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from christi at uni-hd dot de 2009-02-18 11:10 -------
Created an attachment (id=17324)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17324&action=view)
preprocessed test.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (2 preceding siblings ...)
2009-02-18 11:10 ` christi at uni-hd dot de
@ 2009-02-18 18:46 ` pinskia at gcc dot gnu dot org
2009-02-18 18:47 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-18 18:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2009-02-18 18:46 -------
It works for me with:
GNU C++ (GCC) version 4.4.0 20081229 (experimental) [trunk revision 142951]
(i386-apple-darwin8.11.1)
compiled by GNU C version 4.4.0 20081229 (experimental) [trunk revision
142951], GMP version 4.2.2, MPFR version 2.3.0.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.3.4 4.4.0 |4.3.4
Known to work| |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (3 preceding siblings ...)
2009-02-18 18:46 ` pinskia at gcc dot gnu dot org
@ 2009-02-18 18:47 ` pinskia at gcc dot gnu dot org
2009-02-18 18:48 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-18 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2009-02-18 18:46 -------
And:
GNU C++ (GCC) version 4.4.0 20090116 (experimental) [trunk revision 143448]
(powerpc64-unknown-linux-gnu)
compiled by GNU C version 4.4.0 20090116 (experimental) [trunk revision
143448], GMP version 4.2.2, MPFR version 2.3.1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (4 preceding siblings ...)
2009-02-18 18:47 ` pinskia at gcc dot gnu dot org
@ 2009-02-18 18:48 ` pinskia at gcc dot gnu dot org
2009-02-18 20:19 ` hjl dot tools at gmail dot com
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-18 18:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2009-02-18 18:47 -------
And in the release of 4.3.2 with checking turned on.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|4.4.0 |4.4.0 4.3.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (5 preceding siblings ...)
2009-02-18 18:48 ` pinskia at gcc dot gnu dot org
@ 2009-02-18 20:19 ` hjl dot tools at gmail dot com
2009-02-18 20:21 ` [Bug c++/39225] [4.3/4.4 Regression] " hjl dot tools at gmail dot com
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-18 20:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hjl dot tools at gmail dot com 2009-02-18 20:19 -------
It is caused by revision 143502 on trunk:
http://gcc.gnu.org/ml/gcc-cvs/2009-01/msg00515.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-02-18 20:19:20
date| |
Target Milestone|--- |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (6 preceding siblings ...)
2009-02-18 20:19 ` hjl dot tools at gmail dot com
@ 2009-02-18 20:21 ` hjl dot tools at gmail dot com
2009-02-18 20:52 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-18 20:21 UTC (permalink / raw)
To: gcc-bugs
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.3.4 |4.3.4 4.4.0
Known to work|4.4.0 4.3.2 |4.3.2
Summary|ICE if destructor doen't |[4.3/4.4 Regression] ICE if
|match class name |destructor doen't match
| |class name
Target Milestone|4.3.4 |4.4.0
Version|4.3.3 |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (7 preceding siblings ...)
2009-02-18 20:21 ` [Bug c++/39225] [4.3/4.4 Regression] " hjl dot tools at gmail dot com
@ 2009-02-18 20:52 ` rguenth at gcc dot gnu dot org
2009-02-18 21:24 ` jason at gcc dot gnu dot org
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-18 20:52 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.4.0 |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (8 preceding siblings ...)
2009-02-18 20:52 ` rguenth at gcc dot gnu dot org
@ 2009-02-18 21:24 ` jason at gcc dot gnu dot org
2009-02-20 5:33 ` jason at gcc dot gnu dot org
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-18 21:24 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-02-18 20:19:20 |2009-02-18 21:24:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (9 preceding siblings ...)
2009-02-18 21:24 ` jason at gcc dot gnu dot org
@ 2009-02-20 5:33 ` jason at gcc dot gnu dot org
2009-02-20 5:33 ` jason at gcc dot gnu dot org
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-20 5:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jason at gcc dot gnu dot org 2009-02-20 05:33 -------
Fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3/4.4 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (10 preceding siblings ...)
2009-02-20 5:33 ` jason at gcc dot gnu dot org
@ 2009-02-20 5:33 ` jason at gcc dot gnu dot org
2009-02-20 5:37 ` [Bug c++/39225] [4.3 " hjl dot tools at gmail dot com
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-20 5:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jason at gcc dot gnu dot org 2009-02-20 05:32 -------
Subject: Bug 39225
Author: jason
Date: Fri Feb 20 05:32:40 2009
New Revision: 144314
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144314
Log:
PR c++/39225
* decl.c (grokdeclarator): Handle ~identifier.
Added:
trunk/gcc/testsuite/g++.dg/parse/dtor15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (11 preceding siblings ...)
2009-02-20 5:33 ` jason at gcc dot gnu dot org
@ 2009-02-20 5:37 ` hjl dot tools at gmail dot com
2009-02-20 15:22 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-02-20 5:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from hjl dot tools at gmail dot com 2009-02-20 05:37 -------
I think 4.3 branch is still broken.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Known to fail|4.3.4 4.4.0 |4.3.4
Known to work|4.3.2 |4.3.2 4.4.0
Resolution|FIXED |
Summary|[4.3/4.4 Regression] ICE if |[4.3 Regression] ICE if
|destructor doen't match |destructor doen't match
|class name |class name
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (12 preceding siblings ...)
2009-02-20 5:37 ` [Bug c++/39225] [4.3 " hjl dot tools at gmail dot com
@ 2009-02-20 15:22 ` jason at gcc dot gnu dot org
2009-02-20 18:59 ` jason at gcc dot gnu dot org
2009-05-29 7:50 ` rguenth at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-20 15:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jason at gcc dot gnu dot org 2009-02-20 15:22 -------
Subject: Bug 39225
Author: jason
Date: Fri Feb 20 15:21:51 2009
New Revision: 144325
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144325
Log:
PR c++/39225
* decl.c (grokdeclarator): Handle ~identifier.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/parse/dtor15.C
- copied unchanged from r144314,
trunk/gcc/testsuite/g++.dg/parse/dtor15.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/decl.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (13 preceding siblings ...)
2009-02-20 15:22 ` jason at gcc dot gnu dot org
@ 2009-02-20 18:59 ` jason at gcc dot gnu dot org
2009-05-29 7:50 ` rguenth at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-02-20 18:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jason at gcc dot gnu dot org 2009-02-20 18:59 -------
Fixed in 4.3 as well.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug c++/39225] [4.3 Regression] ICE if destructor doen't match class name
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
` (14 preceding siblings ...)
2009-02-20 18:59 ` jason at gcc dot gnu dot org
@ 2009-05-29 7:50 ` rguenth at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-29 7:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from rguenth at gcc dot gnu dot org 2009-05-29 07:50 -------
*** Bug 40284 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |poftwaresatent at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39225
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2009-05-29 7:50 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-18 7:54 [Bug c++/39225] New: ICE if destructor doen't match class name christi at uni-hd dot de
2009-02-18 7:55 ` [Bug c++/39225] " christi at uni-hd dot de
2009-02-18 10:12 ` rguenth at gcc dot gnu dot org
2009-02-18 11:10 ` christi at uni-hd dot de
2009-02-18 18:46 ` pinskia at gcc dot gnu dot org
2009-02-18 18:47 ` pinskia at gcc dot gnu dot org
2009-02-18 18:48 ` pinskia at gcc dot gnu dot org
2009-02-18 20:19 ` hjl dot tools at gmail dot com
2009-02-18 20:21 ` [Bug c++/39225] [4.3/4.4 Regression] " hjl dot tools at gmail dot com
2009-02-18 20:52 ` rguenth at gcc dot gnu dot org
2009-02-18 21:24 ` jason at gcc dot gnu dot org
2009-02-20 5:33 ` jason at gcc dot gnu dot org
2009-02-20 5:33 ` jason at gcc dot gnu dot org
2009-02-20 5:37 ` [Bug c++/39225] [4.3 " hjl dot tools at gmail dot com
2009-02-20 15:22 ` jason at gcc dot gnu dot org
2009-02-20 18:59 ` jason at gcc dot gnu dot org
2009-05-29 7:50 ` rguenth 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).