beachboys++ /tmp> g++ -O2 mytestcase.i
mytestcase.i: In member function void D::Do(B*, C*):
mytestcase.i:36: internal compiler error: in compare_name_with_value, at
tree-vrp.c:3272
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see .
Preprocessed source stored into /tmp/ccwTAH7q.out file, please attach this to
your bugreport.
Exit 1
beachboys++ /tmp> g++ -O0 mytestcase.i
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib64/crt1.o: In function
`_start':
../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status
Exit 1
--
Summary: ICE in compare_name_with_value, at tree-vrp.c:3272
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: thimo dot neubauer at cst dot com
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31698