$ cat tree.cc 
template <class T> 
struct tree { 
  struct iterator; 
  struct sibling_iterator { 
    friend struct tree<T>::iterator; 
  }; 
}; 
$ gcc tree.cc 
tree.cc:5: internal compiler error: tree check: expected typename_type, have 
record_type in cp_parser_lookup_name, at cp/parser.c:14210 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: [4.0 regression] ICE in cp_parser_lookup_name
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schwab at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18981

Reply via email to