The following invalid code snippet triggers an ICE since GCC 3.1: ============================== typedef void (func_type)();
struct A { friend func_type f : 2; }; ============================== bug.cc:5: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] Before, the code was wrongly accepted. -- Summary: [4.1/4.2/4.3/4.4 regression] ICE with invalid friend declaration Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, 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=35320