The following code snippet causes an ICE on mainline when compiled with "g++ -O" (the C frontend is not affected):
============================= int *p = (int*)(int[1]){0}; ============================= bug.cc:1: internal compiler error: tree check: expected class 'expression', have 'exceptional' (constructor) in get_base_var, at ipa-utils.c:224 Please submit a full bug report, [etc.] -- Summary: [4.1 Regression] ICE on pointer initialization Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23171