[LLVMbugs] [Bug 6610] New: rejects valid friend declaration

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 13 14:20:56 PST 2010


           Summary: rejects valid friend declaration
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

I am almost sure this is valid c++:

template<typename T> struct C {
  class X;
  friend class C<T>::X;

but clang rejects it:

error: template specialization or definition requires a template parameter list
corresponding to the nested type 'C<T>'
  friend class C<T>::X;

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list