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

           Summary: C++98/03: Template arguments cannot be unnamed types
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


For example, the following is ill-formed in C++98/03:

     1    struct A {};
     2    int foo(A);
     3    template <typename T> int foo(void *, T);
     4    enum {e};
     5    int i = foo(0, e);

but well-formed in C++0x. Clang does not diagnose the error in C++98/03 mode.

-- 
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