http://llvm.org/bugs/show_bug.cgi?id=10093

           Summary: clang disallows to instantiate template for typedefed
                    class
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Created an attachment (id=6701)
 --> (http://llvm.org/bugs/attachment.cgi?id=6701)
testcase

I get such warning with typedef.
st1.C:14:21: warning: qualifier in explicit instantiation of 'Cls<int>::less'
requires a template-id (a typedef is not permitted)
template bool TCls::less(const TCls*, const TCls*);

And no warning without the typedef.

There is no danger in allowing such instantiation. This should be allowed for
better flexibility of templateed code.

gcc (as of 4.6.0) allows such instantiation.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to