This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37904] New: internal compiler error: Segmentation fault (C++ destructor)
- From: "john dot roden at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2008 18:58:51 -0000
- Subject: [Bug c++/37904] New: internal compiler error: Segmentation fault (C++ destructor)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The g++ compiler reports the error "internal compiler error: Segmentation
fault" when the attached (reduced) file is compiled. The fault seems to depend
on inclusion of a destructor (last (only) method in the file). If the
destructor is omitted, the file compiles. The error originally occurred when a
single space was added to a string -- the attached, preprocessed, file was
reduced from the original by a process of elimination.
g++ version info:
g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
I have not been able to test this on a later version of the compiler.
Attached file:
gcc_fault_example.ii (preprocessed)
--
Summary: internal compiler error: Segmentation fault (C++
destructor)
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john dot roden at wanadoo dot fr
GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37904