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: unassignedclangb...@nondot.org Reporter: anders.granlun...@gmail.com CC: dgre...@apple.com, llvmbugs@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.
_______________________________________________ LLVMbugs mailing list LLVMbugs@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs