[LLVMbugs] [Bug 7112] New: clang does not diagnose illegal uses of typename.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 10 21:15:01 PDT 2010


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

           Summary: clang does not diagnose illegal uses of typename.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rideau3 at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


clang does not diagnose uses of typename outside dependent contexts, which is
forbidden in C++03.

Testcase:

struct foo {
  typedef int bar;
}

typename foo::bar i;

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