------- Comment #3 from zsojka at seznam dot cz 2010-02-27 14:02 ------- Testcase fails when compiled as C++ code too (without -flto):
$ /mnt/sdb1/build-157106-checking-fold/gcc/cc1plus -O bug.c int main() Analyzing compilation unit Performing interprocedural optimizations <visibility> <*free_lang_data> <early_local_cleanups> <whole-program> <inline> <static-var> <pure-const>Assembling functions: int main() bug.c: In function ‘int main()’: bug.c:3: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=43057