http://llvm.org/bugs/show_bug.cgi?id=2321
Summary: clang crashes redeclaring union tag as enum
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
union u0;
enum u0 { U0A };
Crashes with assertion:
clang: /home/eli/llvm/include/llvm/Support/Casting.h:199: typename
llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
clang::EnumDecl, Y = clang::Decl*]: Assertion `isa<X>(Val) && "cast<Ty>()
argument of incompatible type!"' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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