Skip to content

clang rejects ia32_signal.i (anonymous unions) #2122

@edwintorok

Description

@edwintorok
Bugzilla Link 1750
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS Linux
Blocks llvm/llvm-bugzilla-archive#2923
CC @DougGregor,@nunoplopes

Extended Description

When compiling http://llvm.org/bugs/attachment.cgi?id=1169:
clang -fsyntax-only ia32_signal.i
clang: /home/edwin/llvm-svn/llvm/include/llvm/Support/Casting.h:199: typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X = clang::TypedefType, Y = const clang::Type*]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed.
clang[0x788b46]
clang[0x788db2]
/lib/libc.so.6[0x32d1c31710]
/lib/libc.so.6(gsignal+0x35)[0x32d1c316a5]
/lib/libc.so.6(abort+0x110)[0x32d1c33100]
/lib/libc.so.6(__assert_fail+0xef)[0x32d1c2ac2f]
clang(llvm::cast_retty<clang::TypedefType, clang::Type const*>::ret_type llvm::cast<clang::TypedefType, clang::Type const*>(clang::Type const* const&)+0x44)[0x6718b4]
clang(clang::Type::getAsPointerType() const+0x4c)[0x66f738]
clang(clang::Sema::CheckPointerTypesForAssignment(clang::QualType, clang::QualType)+0x55)[0x632fbb]
clang(clang::Sema::CheckAssignmentConstraints(clang::QualType, clang::QualType)+0x1b7)[0x6332db]
clang(clang::Sema::CheckSingleAssignmentConstraints(clang::QualType, clang::Expr*&)+0x55)[0x6336b9]
clang(clang::Sema::CheckSingleInitializer(clang::Expr*&, bool, clang::QualType)+0x136)[0x62661a]
clang(clang::Sema::CheckInitializer(clang::Expr*&, clang::QualType&, bool)+0x49)[0x626df7]
clang(clang::Sema::AddInitializerToDecl(void*, void*)+0x123)[0x627151]
clang(clang::Parser::ParseInitDeclaratorListAfterFirstDeclarator(clang::Declarator&)+0x147)[0x678e57]
clang(clang::Parser::ParseSimpleDeclaration(unsigned int)+0xcc)[0x67901c]
clang(clang::Parser::ParseDeclaration(unsigned int)+0x41)[0x679083]
clang(clang::Parser::ParseStatementOrDeclaration(bool)+0x307)[0x685f49]
clang(clang::Parser::ParseCompoundStatementBody(bool)+0x7c)[0x688ae0]
clang(clang::Parser::ParseFunctionDefinition(clang::Declarator&)+0x156)[0x6743c2]
clang(clang::Parser::ParseDeclarationOrFunctionDefinition()+0x2ca)[0x674748]
clang(clang::Parser::ParseExternalDeclaration()+0x213)[0x674c59]
clang(clang::Parser::ParseTopLevelDecl(void*&)+0x43)[0x674ca7]
clang[0x61d081]
clang(clang::ParseAST(clang::Preprocessor&, unsigned int, clang::ASTConsumer&, bool)+0xeb)[0x61d221]
clang[0x5e247c]
clang(main+0x335)[0x5e3e57]
/lib/libc.so.6(__libc_start_main+0xf4)[0x32d1c1db44]
clang[0x5c9f99]
Aborted

$ clang --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.2svn
DEBUG build with assertions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"compile-failUse [accepts-invalid] and [rejects-valid] instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions