This:
    template<typename F> class Foo { friend class F; };
gets you this:
   ~/ootbc/asm$ g++ foo.cc
   foo.cc:2: error: using template type parameter ‘F’ after ‘class’
   foo.cc:2: error: friend declaration does not name a class or function


-- 
           Summary: Can't be friended by template class argument
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net


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

Reply via email to