[LLVMbugs] [Bug 13571] New: Assertion in include/llvm/Support/Casting.h: isa<X>(Val) && "cast<Ty>() argument of incompatible type!"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 10 04:45:56 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13571
Bug #: 13571
Summary: Assertion in include/llvm/Support/Casting.h:
isa<X>(Val) && "cast<Ty>() argument of incompatible
type!"
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolai.stange at zmaw.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
clang: /mnt/user_scratch/nic/llvm/llvm/include/llvm/Support/Casting.h:194:
typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
clang::CXXConstructorDecl, Y = clang::NamedDecl*, typename llvm::cast_retty<To,
From>::ret_type = clang::CXXConstructorDecl*]: Assertion `isa<X>(Val) &&
"cast<Ty>() argument of incompatible type!"' failed.
0 clang 0x0000000001f4b60f
1 clang 0x0000000001f4bb09
2 libpthread.so.0 0x00002ba88dc03cb0
3 libc.so.6 0x00002ba88e85d445 gsignal + 53
4 libc.so.6 0x00002ba88e860bab abort + 379
5 libc.so.6 0x00002ba88e85610e
6 libc.so.6 0x00002ba88e8561b2
7 clang 0x0000000000c0eb57
8 clang 0x0000000000c129ab
clang::InitializationSequence::InitializationSequence(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
clang::Expr**, unsigned int) + 2667
9 clang 0x0000000000be9227
10 clang 0x0000000000be9b2c
clang::Sema::BuildBinaryTypeTrait(clang::BinaryTypeTrait,
clang::SourceLocation, clang::TypeSourceInfo*, clang::TypeSourceInfo*,
clang::SourceLocation) + 732
11 clang 0x0000000000d101d0
12 clang 0x0000000000d1dc74
13 clang 0x0000000000d100f5
14 clang 0x0000000000d258e2
15 clang 0x0000000000d10a95
16 clang 0x0000000000d12029
17 clang 0x0000000000d155d8
18 clang 0x0000000000d15b3d
19 clang 0x0000000000d15e68
20 clang 0x0000000000d19206
21 clang 0x0000000000d1b9cb
22 clang 0x0000000000d0a0be
23 clang 0x0000000000d0beb2
24 clang 0x0000000000d0d333
clang::Sema::SubstType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 163
25 clang 0x0000000000d0d6c3
clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*,
clang::MultiLevelTemplateArgumentList const&) + 739
26 clang 0x0000000000d0dc0e
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 622
27 clang 0x0000000000d0f42c
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1164
28 clang 0x0000000000d52ca8
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1192
29 clang 0x0000000000a8c67e
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 334
30 clang 0x0000000000bb5cc7
clang::Sema::BuildQualifiedDeclarationNameExpr(clang::CXXScopeSpec&,
clang::DeclarationNameInfo const&) + 87
31 clang 0x0000000000d17f49
32 clang 0x0000000000d106b5
33 clang 0x0000000000d216e0
34 clang 0x0000000000d1050d
35 clang 0x0000000000d12029
36 clang 0x0000000000d155d8
37 clang 0x0000000000d15b3d
38 clang 0x0000000000d15e68
39 clang 0x0000000000d09af5
40 clang 0x0000000000d0beb2
41 clang 0x0000000000d0d333
clang::Sema::SubstType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 163
42 clang 0x0000000000d31cc1
clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(clang::TypedefNameDecl*,
bool) + 385
43 clang 0x0000000000d31ee8
clang::TemplateDeclInstantiator::VisitTypedefDecl(clang::TypedefDecl*) + 24
44 clang 0x0000000000d0e77a
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 3546
45 clang 0x0000000000d0f42c
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1164
46 clang 0x0000000000d52ca8
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1192
47 clang 0x0000000000a8c67e
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 334
48 clang 0x0000000000c9e086
clang::Sema::CheckTypenameType(clang::ElaboratedTypeKeyword,
clang::SourceLocation, clang::NestedNameSpecifierLoc, clang::IdentifierInfo
const&, clang::SourceLocation) + 198
49 clang 0x0000000000d17359
50 clang 0x0000000000d09a83
51 clang 0x0000000000d0beb2
52 clang 0x0000000000d0d333
clang::Sema::SubstType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 163
53 clang 0x0000000000d31cc1
clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(clang::TypedefNameDecl*,
bool) + 385
54 clang 0x0000000000d31ee8
clang::TemplateDeclInstantiator::VisitTypedefDecl(clang::TypedefDecl*) + 24
55 clang 0x0000000000d0e77a
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 3546
56 clang 0x0000000000d0f42c
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1164
57 clang 0x0000000000d52ca8
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1192
58 clang 0x0000000000b31364
clang::Sema::CheckBaseSpecifier(clang::CXXRecordDecl*, clang::SourceRange,
bool, clang::AccessSpecifier, clang::TypeSourceInfo*, clang::SourceLocation) +
276
59 clang 0x0000000000d0d6ff
clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*,
clang::MultiLevelTemplateArgumentList const&) + 799
60 clang 0x0000000000d0dc0e
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 622
61 clang 0x0000000000d0f42c
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1164
62 clang 0x0000000000d52ca8
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1192
63 clang 0x0000000000a8c67e
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 334
64 clang 0x0000000000c9e086
clang::Sema::CheckTypenameType(clang::ElaboratedTypeKeyword,
clang::SourceLocation, clang::NestedNameSpecifierLoc, clang::IdentifierInfo
const&, clang::SourceLocation) + 198
65 clang 0x0000000000d17359
66 clang 0x0000000000d09a83
67 clang 0x0000000000d0beb2
68 clang 0x0000000000d0d333
clang::Sema::SubstType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 163
69 clang 0x0000000000d31cc1
clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(clang::TypedefNameDecl*,
bool) + 385
70 clang 0x0000000000d31ee8
clang::TemplateDeclInstantiator::VisitTypedefDecl(clang::TypedefDecl*) + 24
71 clang 0x0000000000d0e77a
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 3546
72 clang 0x0000000000d0f42c
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1164
73 clang 0x0000000000d52ca8
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1192
74 clang 0x0000000000b31364
clang::Sema::CheckBaseSpecifier(clang::CXXRecordDecl*, clang::SourceRange,
bool, clang::AccessSpecifier, clang::TypeSourceInfo*, clang::SourceLocation) +
276
75 clang 0x0000000000d0d6ff
clang::Sema::SubstBaseSpecifiers(clang::CXXRecordDecl*, clang::CXXRecordDecl*,
clang::MultiLevelTemplateArgumentList const&) + 799
76 clang 0x0000000000d0dc0e
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 622
77 clang 0x0000000000d0f42c
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1164
78 clang 0x0000000000d52ca8
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1192
79 clang 0x0000000000b8b253
clang::Sema::CheckCallReturnType(clang::QualType, clang::SourceLocation,
clang::CallExpr*, clang::FunctionDecl*) + 275
80 clang 0x0000000000bb892e
clang::Sema::BuildResolvedCallExpr(clang::Expr*, clang::NamedDecl*,
clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation,
clang::Expr*, bool) + 1310
81 clang 0x0000000000c63e5f
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation, clang::Expr**, unsigned
int, clang::SourceLocation, clang::Expr*, bool) + 1647
82 clang 0x0000000000bb9796 clang::Sema::ActOnCallExpr(clang::Scope*,
clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool) + 1398
83 clang 0x0000000000d2096d
84 clang 0x0000000000d209e6
85 clang 0x0000000000d1063a
86 clang 0x0000000000d25c6f clang::Sema::SubstExpr(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&) + 79
87 clang 0x0000000000d2fe85
clang::Sema::SubstInitializer(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&, bool) + 85
88 clang 0x0000000000d35de1
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*) + 2033
89 clang 0x0000000000d32010 clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 256
90 clang 0x0000000000d260a4
91 clang 0x0000000000d28283
92 clang 0x0000000000d26685
93 clang 0x0000000000d28fdf clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 79
94 clang 0x0000000000d3b227
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 775
95 clang 0x0000000000d3ac21
clang::Sema::PerformPendingInstantiations(bool) + 609
96 clang 0x0000000000d3b2b6
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 918
97 clang 0x0000000000d3ac21
clang::Sema::PerformPendingInstantiations(bool) + 609
98 clang 0x0000000000a7bd02 clang::Sema::ActOnEndOfTranslationUnit()
+ 386
99 clang 0x00000000009f7336
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 374
100 clang 0x00000000009eec7d clang::ParseAST(clang::Sema&, bool,
bool) + 509
101 clang 0x00000000007599b1 clang::FrontendAction::Execute() + 145
102 clang 0x000000000073ba34
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 340
103 clang 0x0000000000722456
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1158
104 clang 0x0000000000719ec8 cc1_main(char const**, char const**,
char const*, void*) + 968
105 clang 0x00000000007028a7 main + 743
106 libc.so.6 0x00002ba88e84876d __libc_start_main + 237
107 clang 0x0000000000717a2d
Stack dump:
0. Program arguments: /home/nic/sw/precise-x86_64/clang-trunk/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name stack_trace.cpp -pic-level 1 -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.22 -momit-leaf-frame-pointer -g -coverage-file
CMakeFiles/triqs.dir/utility/stack_trace.cpp.o -resource-dir
/home/nic/sw/precise-x86_64/clang-trunk/bin/../lib/clang/3.2 -D triqs_EXPORTS
-D HAVE_MPI -D GIT_HASH="655816d347b309fa060a7ae08e364eb9112cc833" -D
__COMPILEDBY__=nic -D __HOSTNAME__=nic-desktop -D USE_BLITZ -I
/usr/include/mpich2 -I /usr/lib/python2.7/dist-packages/numpy/core/include -I
/usr/include/python2.7 -I //home/nic/src/boost_1_48_0 -I /home/nic/tscm/TRIQS
-I /home/nic/tscm/TRIQS/foreignlibs -I
/home/nic/build/vtbclang/blitz/BlitzInstallation/include -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem /usr/local/include -internal-isystem
/home/nic/sw/precise-x86_64/clang-trunk/bin/../lib/clang/3.2/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir /home/nic/build/vtbclang/triqs
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -o
CMakeFiles/triqs.dir/utility/stack_trace.cpp.o -x c++
/home/nic/tscm/TRIQS/triqs/utility/stack_trace.cpp
1. <eof> parser at end of file
2. //home/nic/src/boost_1_48_0/boost/algorithm/string/split.hpp:140:35:
instantiating function definition 'split'
3. //home/nic/src/boost_1_48_0/boost/algorithm/string/iter_find.hpp:143:9:
instantiating function definition 'iter_split'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 161655)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/stack_trace-akY1T1.cpp
clang: note: diagnostic msg: /tmp/stack_trace-akY1T1.sh
clang: note: diagnostic msg:
--
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