[Bug c++/54986] New: Internal Error: segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54986 Bug #: 54986 Summary: Internal Error: segmentation fault Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: vani...@debian.org When compiling giac, I've an Internal error: Segmentation fault with gcc-4.7 and -O2. Using some newer version of some library solved this, but I believe a SEGV in gcc is alway a bug. Compiling without -O2 is successful. The error: $ g++-4.7 -O2 -c foo-4.7.cc prog.cc: In function ‘bool giac::is_return(const giac::gen&, giac::gen&)’: prog.cc:8046:1: internal compiler error: Erreur de segmentation Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/cc4J9upy.out file, please attach this to your bugreport. $ g++-4.7 -c foo-4.7.cc $
[Bug c++/54986] Internal Error: segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54986 --- Comment #1 from Rémi Vanicat 2012-10-19 12:06:30 UTC --- I forgot to give you the version: I'm using debian unstable gcc: g++-4.7 (Debian 4.7.2-4) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The attached failing file was too big, I will upload it somewhere soon.
[Bug c++/54986] Internal Error: segmentation fault
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54986 --- Comment #2 from Rémi Vanicat 2012-10-19 14:13:21 UTC --- Created attachment 28492 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28492 Small test case I've isolated the bug to a relatively small file (140 line, with no #include), here it is.