------- Comment #40 from zsojka at seznam dot cz 2010-02-27 14:06 ------- Follown file fails at all opt levels at both x86_64 and i?86:
---------- testcase.cpp ---------- namespace { bool bar(int i) { return i; } } int foo(int i) { return bar(i) ? i : 0; } ---------------------------------- It was reduced from dyncast.cc (bootstrap fails there). $ /mnt/sdb1/build-157106-checking-fold/gcc/cc1plus -O1 testcase.cpp bool<unnamed>::bar(int) int foo(int) Analyzing compilation unit Performing interprocedural optimizations <visibility> <*free_lang_data> <early_local_cleanups> <whole-program> <inline> <static-var> <pure-const>Assembling functions: int foo(int) testcase.cpp: In function ‘int foo(int)’: testcase.cpp:4:5: internal compiler error: fold check: original tree changed by fold Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20623