[Bug c++/30917] New: ICE with friend in local class (to a function)

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 21 18:24:00 GMT 2007


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



More information about the Gcc-bugs mailing list