http://llvm.org/bugs/show_bug.cgi?id=18336
Bug ID: 18336
Summary: clang asserts on enum definition in operator member
prototype
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
given test.cpp:
class X {
public:
operator enum MYENUM {
first, second
} ( void ); // Error
};
clang test.cpp
will assert with:
Assertion failed: Access != AS_none && "Access specifier is AS_none inside a
rec
ord decl", file ..\..\..\..\..\tools\clang\lib\AST\DeclBase.cpp, line 696
This is invalid code but clang shouldn't assert.
--
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