Skip to content

clang crashes redeclaring union tag as enum #2693

@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 2321
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS Linux

Extended Description

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(Val) && "cast() argument of incompatible type!"' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions