[LLVMbugs] [Bug 6514] New: valid template code rejected (friend decl. misinterpreted)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 5 10:13:40 PST 2010


           Summary: valid template code rejected (friend decl.
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ggreif at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

template <int N, template <int> class GOVERN>
class Role : public GOVERN<N>
    friend class GOVERN<N>;


abc.cpp:4:18: error: cannot specialize a template template parameter
    friend class GOVERN<N>;
1 diagnostic generated.

- G++ digests this.
- comeau too.


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