[LLVMbugs] [Bug 6563] New: accepts invalid template argument
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Tue Mar  9 20:00:03 PST 2010
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=6563
           Summary: accepts invalid template argument
           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
clang accepts the following:
---------------------
int *bar;
template <int *>
struct zed {};
void g(zed<bar>*)
{}
-------------------
But that doesn't match the restrictions defined in 14.3.2.
-- 
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