Once again (see PR27547) the C++ frontend stumbles over an invalid operator:
======================== struct A { operator int&(int); }; A a; int& i = a; ======================== n4.cc:3: error: 'A::operator int&(int)' must take 'void' n4.cc:7: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] This happens since GCC 3.3.4. Posting a patch soon. -- Summary: [4.0/4.1/4.2 regression] ICE on invalid conversion operator Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: reichelt at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28852