http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53174
Bug #: 53174 Summary: ICE in expand_debug_expr Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: p...@mandriva.com.br Created attachment 27271 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27271 ICE test case I verified the problem happens in i586 with gcc 4.6.3, x86_64 with gcc 4.6.1, 4.6.3 and a 4.7.0 snapshot. The minimum set of options to cause the ICE is g++ -c test.cc -O3 -g -ffast-math changing either does not cause the crash. backtrace in 4.6 looks like: 0x0000000000603185 in expand_debug_expr (exp=0x7ffff57dd790) at ../../gcc/cfgexpand.c:2380 2380 enum machine_mode mode = TYPE_MODE (TREE_TYPE (exp)); and in 4.7: 0x000000000064bc1c in expand_debug_expr (exp=0x7ffff4a3a730) at ../../gcc/cfgexpand.c:2615 2615 enum machine_mode mode = TYPE_MODE (TREE_TYPE (exp)); The testcase is adapted from demosaic_algos.cc from the package from http://www.rawtherapee.com/