Testcase: unsigned count() { class QGListIterator { friend class QGList; QGListIterator( const QGList & ); }; } -------- I think this is valid code.
-- Summary: ICE with friend in local class (to a function) Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30917