This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11344] New: templates + friend + name conflict = ICE


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: templates + friend + name conflict = ICE
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: scott dot worley at chkno dot net
                CC: gcc-bugs at gcc dot gnu dot org

template <class Foo> 
class bar {}; 
 
template <class Foo> 
class baz { 
   int bar; 
   friend class bar; 
}; 
 
 
Will cause ICE in pop_binding, at cp/decl.c:1187 
 
Tested on 2.95.4, 2.96, and 3.2.2.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]