[LLVMbugs] [Bug 2321] New: clang crashes redeclaring union tag as enum

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon May 12 16:50:29 PDT 2008


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: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list