[LLVMbugs] [Bug 12890] ICE involving delegating constructors and variadic constructors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 19 17:13:26 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12890

Howard Hinnant <hhinnant at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #2 from Howard Hinnant <hhinnant at apple.com> 2012-05-19 19:13:26 CDT ---
I'm now getting a slightly different dump:


Assertion failed: (0 && "Delegating constructor should not need zeroing"),
function EmitCXXConstructExpr, file
/Users/hhinnant/Development/llvm/tools/clang/lib/CodeGen/CGExprCXX.cpp, line
412.
0  clang             0x000000010bce844e _ZL15PrintStackTracePv + 46
1  clang             0x000000010bce8a68 _ZL13SignalHandleri + 408
2  libsystem_c.dylib 0x00007fff8e126cfa _sigtramp + 26
3  libsystem_c.dylib 0x00000400691c3050 _sigtramp + 18446607737942557552
4  clang             0x000000010bce871b raise + 27
5  clang             0x000000010bce87d2 abort + 18
6  clang             0x000000010bce87b1 __assert_rtn + 129
7  clang             0x00000001098ae873
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 291
8  clang             0x00000001098a6690 (anonymous
namespace)::AggExprEmitter::VisitCXXConstructExpr(clang::CXXConstructExpr
const*) + 96
9  clang             0x00000001098a37d2 clang::StmtVisitorBase<clang::make_ptr,
(anonymous namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 1954
10 clang             0x00000001098a2c90
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 352
11 clang             0x000000010984b0e5
clang::CodeGen::CodeGenFunction::EmitDelegatingCXXConstructorCall(clang::CXXConstructorDecl
const*, clang::CodeGen::FunctionArgList const&) + 325
12 clang             0x000000010984adbf
clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl
const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 79
13 clang             0x000000010984a7e3
clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&)
+ 419
14 clang             0x0000000109974da9
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 713
15 clang             0x0000000109834d84
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 308
16 clang             0x000000010997f720
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 288
17 clang             0x000000010997c476
clang::CodeGen::CodeGenModule::EmitDeferred() + 1078
18 clang             0x000000010997bee9
clang::CodeGen::CodeGenModule::Release() + 25
19 clang             0x00000001099c7e98 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) + 136
20 clang             0x000000010997069f
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 143
21 clang             0x00000001099d9b3f clang::ParseAST(clang::Sema&, bool,
bool) + 831
22 clang             0x00000001096555a9
clang::ASTFrontendAction::ExecuteAction() + 489
23 clang             0x000000010996f771 clang::CodeGenAction::ExecuteAction() +
1505
24 clang             0x0000000109655117 clang::FrontendAction::Execute() + 231
25 clang             0x0000000109619564
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 916
26 clang             0x00000001095e713f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1855
27 clang             0x00000001095c9e02 cc1_main(char const**, char const**,
char const*, void*) + 1186
28 clang             0x00000001095dd1a6 main + 566
29 clang             0x00000001095c9934 start + 52
Stack dump:
0.    Program arguments:
/Users/hhinnant/Development/llvm/build/Debug+Asserts/bin/clang -cc1 -triple
x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free -main-file-name
test.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables
-target-cpu core2 -target-linker-version 134.1 -resource-dir
/Users/hhinnant/Development/llvm/build/Debug+Asserts/bin/../lib/clang/3.2
-fmodule-cache-path
/var/folders/5q/jl417kxs70j1jn8pz_mclngm0000gn/T/clang-module-cache
-stdlib=libc++ -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/Users/hhinnant/Development/cljunk -ferror-limit 19 -fmessage-length 162
-stack-protector 1 -mstackrealign -fblocks -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/5q/jl417kxs70j1jn8pz_mclngm0000gn/T/test-gSlgOi.o -x c++ test.cpp 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    test.cpp:8:5: Generating code for declaration 'Document::Document'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg:
/var/folders/5q/jl417kxs70j1jn8pz_mclngm0000gn/T/test-XJ38WS.ii
clang: note: diagnostic msg:
/var/folders/5q/jl417kxs70j1jn8pz_mclngm0000gn/T/test-XJ38WS.sh

-- 
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