[LLVMbugs] [Bug 24206] New: I'll formed program with anonymous enum inside declaration compiles without diagnostic message

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 21 16:44:33 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24206

            Bug ID: 24206
           Summary: I'll formed program with anonymous enum inside
                    declaration compiles without diagnostic message
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: anders.granlund.0 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Consider the following program.

  enum {x};

  int main() {}

It is ill-formed by [dcl.dcl]/5 in the c++ standard (See
http://eel.is/c++draft/dcl.dcl#5 ). I did expect to get a diagnostic message,
but got none.

-- 
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/20150721/cb91f4a5/attachment.html>


More information about the llvm-bugs mailing list