[LLVMbugs] [Bug 17968] New: clang accepts templates nested in extern "C" structs

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 17 12:10:57 PST 2013


            Bug ID: 17968
           Summary: clang accepts templates nested in extern "C" structs
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang accepts, gcc and edg reject:

extern "C" {
  struct bah {
    template <typename T> struct bar {};
    template <typename T> void baz() {};

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131117/62646237/attachment.html>

More information about the llvm-bugs mailing list