[LLVMbugs] [Bug 6564] New: Assertion failed "Key function changed"...
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 10 02:36:56 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6564
Summary: Assertion failed "Key function changed"...
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: Fons.Rademakers at cern.ch
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Compiling the attached file with clang++ -c aap.cxx gives:
(proof) [137] clang++ -c aap.cxxAssertion failed: (Entry ==
ASTRecordLayoutBuilder::ComputeKeyFunction(RD) && "Key function changed!"),
function getKeyFunction, file
/Users/rdm/llvm/src/tools/clang/lib/AST/ASTContext.cpp, line 1232.
0 clang 0x0000000100d49c5f PrintStackTrace(void*) + 38
1 clang 0x0000000100d4a1ed SignalHandler(int) + 336
2 libSystem.B.dylib 0x00007fff88a66eaa _sigtramp + 26
3 libSystem.B.dylib 000000000000000000 _sigtramp + 2002358640
4 libSystem.B.dylib 0x00007fff88ae2e74 __pthread_markcancel + 0
5 clang 0x00000001004e7a94
clang::ASTContext::getKeyFunction(clang::CXXRecordDecl const*) + 220
6 clang 0x00000001002096ac
clang::CodeGen::CodeGenModule::MayDeferGeneration(clang::ValueDecl const*) +
320
7 clang 0x000000010020bddf
clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 249
8 clang 0x000000010014baed
clang::CodeGen::CodeGenModule::EmitCXXConstructors(clang::CXXConstructorDecl
const*) + 47
9 clang 0x000000010020c0d5
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 643
10 clang 0x0000000100225252 (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 76
11 clang 0x0000000100038e7e (anonymous
namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 144
12 clang 0x00000001003bee15
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1511
13 clang 0x00000001003be664
clang::Sema::PerformPendingImplicitInstantiations(bool) + 336
14 clang 0x0000000100232c61
clang::Sema::ActOnEndOfTranslationUnit() + 225
15 clang 0x000000010060147b
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 91
16 clang 0x0000000100231e71 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 523
17 clang 0x000000010005a2d8
clang::ASTFrontendAction::ExecuteAction() + 256
18 clang 0x000000010005a3c8 clang::FrontendAction::Execute() + 226
19 clang 0x000000010003e114
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 726
20 clang 0x000000010001e15c cc1_main(char const**, char const**,
char const*, void*) + 1296
21 clang 0x0000000100022361 main + 252
22 clang 0x000000010001d134 start + 52
Stack dump:
0. Program arguments: /Users/rdm/llvm/inst/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -S -disable-free -main-file-name aap.cxx -pic-level 1
-mdisable-fp-elim -munwind-tables -target-cpu core2 -resource-dir
/Users/rdm/llvm/inst/lib/clang/1.1 -fmessage-length 80 -stack-protector 1
-fblocks -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/zK/zKJDfZztH5upJbZEL05q7U+++TI/-Tmp-/cc-LvCuEU.s -x c++ aap.cxx
1. <eof> parser at end of file
2. math/mathcore/src/FunctorCint.cxx:35:4: instantiating function
definition 'ROOT::Math::FunctorCintHandler<class
ROOT::Math::Functor>::FunctorCintHandler'
3. math/mathcore/src/FunctorCint.cxx:35:4: LLVM IR generation of
declaration 'ROOT::Math::FunctorCintHandler<class
ROOT::Math::Functor>::FunctorCintHandler'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
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