[LLVMbugs] [Bug 6784] New: C++98/03: Template arguments cannot be unnamed types

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 5 10:44:58 PDT 2010


           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: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

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.

More information about the llvm-bugs mailing list