This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39225] New: ICE if destructor doen't match class name
- From: "christi at uni-hd dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Feb 2009 07:54:16 -0000
- Subject: [Bug c++/39225] New: ICE if destructor doen't match class name
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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