The following invalid code snippet triggers an ICE on mainline: ================================== class A { int i; };
void foo() { A(); } A::A() {} ================================== bug.cc:11: error: definition of implicitly-declared 'A::A()' bug.cc:11: error: declaration of 'A::A()' throws different exceptions bug.cc:2: error: from previous declaration 'A::A() throw ()' bug.cc: In constructor 'A::A()': bug.cc:11: internal compiler error: tree check: expected statement_list, have bind_expr in tsi_last, at tree-iterator.h:54 Please submit a full bug report, [etc.] The problem is probably related to PR30303. -- Summary: [4.3 regression] ICE with invalid constructor definition Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30304