[LLVMbugs] [Bug 16167] New: clang should disallow extern void in C++ mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 28 12:51:39 PDT 2013


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

            Bug ID: 16167
           Summary: clang should disallow extern void in C++ mode
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Rationale from Richard Smith:

'void' is not an object type ([basic.types]p8), so 'v' cannot be a declaration
of an object ([intro.object]p1), so it cannot be a declaration of a variable
([basic]p6). Therefore, the 'extern' keyword cannot be applied to the
declaration of 'v' ([dcl.stc]p6).

-- 
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/20130528/0f17a70b/attachment.html>


More information about the llvm-bugs mailing list