g++ ICE (segfault in cc1plus)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Fix Released
|
Medium
|
|||
gcc-4.5 (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
gcc-4.6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcc-4.5
I have a testcase reduced to a single C++ file that causes an internal error in g++ for every version tested (4.x for x = 1,2,3,4 and 5). I can reproduce it on Ubuntu 10.04 and 10.10. I have not been able to find any workaround for this bug.
> g++-4.5 -v testcase.cxx
Using built-in specs.
COLLECT_GCC=g++-4.5
COLLECT_
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.5.1 (Ubuntu/Linaro 4.5.1-7ubuntu2)
COLLECT_
/usr/lib/
GNU C++ (Ubuntu/Linaro 4.5.1-7ubuntu2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-
ignoring nonexistent directory "/usr/local/
ignoring nonexistent directory "/usr/lib/
#include "..." search starts here:
#include <...> search starts here:
/usr/include/
/usr/include/
/usr/include/
/usr/local/include
/usr/lib/
/usr/lib/
/usr/include/
/usr/include
End of search list.
GNU C++ (Ubuntu/Linaro 4.5.1-7ubuntu2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-
Compiler executable checksum: 50e33501336f77c
g++-4.5: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <file:/
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gcc: | |
status: | New → In Progress |
Changed in gcc: | |
status: | In Progress → Fix Released |
Some additional information: if you comment out the ~Base destructor, the ICE goes away.
The ICE also goes away if you significantly reduce the number of Child members in the Container class.