http://llvm.org/bugs/show_bug.cgi?id=18044
Bug ID: 18044
Summary: Crash with "unexpected context" with enum class as
(invalid) name qualifier
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 11599
--> http://llvm.org/bugs/attachment.cgi?id=11599&action=edit
Complete log of clang run
The following (incorrect) code crashes clang r195016:
enum class Enum {};
unsigned int Enum::ENUMS;
This results in (full log attached):
% ~/LLVM/build/Release+Asserts/bin/clang -c -std=c++1y -c clang.cpp
Unexpected context
Removing "class" from the enum results in the (expected) error message: "error:
no member named 'ENUMS' in 'Enum'"
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs