The compiler segfaults on the following valid code snippet when invoked with "g++ --param ggc-min-expand=0 --param ggc-min-heapsize=0":
============================ struct A { friend void foo() {} friend void foo(); }; ============================ The error message on mainline is: bug.cc:4: warning: 'void foo()' is already a friend of class 'A' bug.cc:4: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] This happens since the two command line parameters were introduced (GCC 3.3). -- Summary: ICE with multiple friend declarations Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored, GC 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=27100