The following code snippet causes an ICE on mainline when compiled with g++ -O:
======================== struct A { ~A(); }; struct B { int i; A a; void foo() {} }; void bar() { B().foo(); } ======================== bug.cc: In function 'void bar()': bug.cc:14: error: address taken, but ADDRESSABLE bit not set D.1597 bug.cc:14: internal compiler error: verify_stmts failed. Please submit a full bug report, [etc.] -- Summary: [4.1 regression] ICE: address taken, but ADDRESSABLE bit not set Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P2 Component: tree-optimization 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=20489