http://llvm.org/bugs/show_bug.cgi?id=18234
Bug ID: 18234
Summary: [C++98]Enumerations shall not be declared in the
type-specifier-seq of a conversion function.
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
In section 12.3.2 Conversion functions:
Classes, enumerations, and typedef-names shall not be declared in the type-
specifier-seq.
$ cat test.C
struct S {
operator enum E {x, y} ();
};
int main (int argc, char* argv[]) {
struct S s;
return 0;
}
$ clang++ -S test.C
clang:
/prj/llvm-arm/home/nightly/src/community-branch-34/llvm/tools/clang/lib/AST/DeclBase.cpp:690:
void clang::Decl::CheckAccessDeclContext() const: Assertion `Access != AS_none
&& "Access specifier is AS_none inside a record decl"' failed.
...
Should issue a error msg instead. Both trunk and 3.4 branch hit the same
assertion.
--
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