[llvm-bugs] [Bug 30664] New: ToT clang crashes in Sema::InstantiateMemInitializers
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 11 15:57:40 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30664
Bug ID: 30664
Summary: ToT clang crashes in Sema::InstantiateMemInitializers
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: vsk at apple.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17425
--> https://llvm.org/bugs/attachment.cgi?id=17425&action=edit
Reduced reproducer
Reduced example:
$ clang -std=c++11 -c crash.cc -o /dev/null
struct outer {
struct inner {
const outer &o;
inner() : o({}) {}
};
};
outer::inner i;
## frame #4: 0x000000010b8e8f00
libclangSema.dylib`clang::FunctionDecl::getParamDecl(this=0x0000000114017930,
i=0) const + 112 at Decl.h:2012
## frame #5: 0x000000010bd6cb79
libclangSema.dylib`clang::Sema::PerformImplicitConversion(this=0x0000000112870800,
From=0x00000001140178a0, ToType=QualType @ 0x00007fff5fbf5668,
ICS=0x0000000112405000, Action=AA_Initializing, CCK=CCK_ImplicitConversion) +
473 at SemaExprCXX.cpp:3421
## frame #6: 0x000000010be6c408
libclangSema.dylib`clang::InitializationSequence::Perform(this=0x00007fff5fbf6d38,
S=0x0000000112870800, Entity=0x00007fff5fbf6c58, Kind=0x00007fff5fbf6c48,
Args=clang::MultiExprArg @ 0x00007fff5fbf68f0, ResultType=0x0000000000000000) +
10472 at SemaInit.cpp:6658
## frame #7: 0x000000010bada064
libclangSema.dylib`clang::Sema::BuildMemberInitializer(this=0x0000000112870800,
Member=0x0000000114016ef0, Init=0x00000001140178e0, IdLoc=(ID = 180156)) + 1236
at SemaDeclCXX.cpp:3876
## frame #8: 0x000000010c2494b0
libclangSema.dylib`clang::Sema::InstantiateMemInitializers(this=0x0000000112870800,
New=0x0000000114016f78, Tmpl=0x000000011292f9e8,
TemplateArgs=0x00007fff5fbf8b98) + 2352 at SemaTemplateInstantiateDecl.cpp:4395
## frame #9: 0x000000010c248493
libclangSema.dylib`clang::Sema::InstantiateFunctionDefinition(this=0x0000000112870800,
PointOfInstantiation=(ID = 180186), Function=0x0000000114016f78,
Recursive=true, DefinitionRequired=false, AtEndOfTU=true) + 3587 at
SemaTemplateInstantiateDecl.cpp:3708
## frame #10: 0x000000010c23fc05
libclangSema.dylib`clang::Sema::PerformPendingInstantiations(this=0x0000000112870800,
LocalOnly=false) + 949 at SemaTemplateInstantiateDecl.cpp:4927
## frame #11: 0x000000010b82fb46
libclangSema.dylib`clang::Sema::ActOnEndOfTranslationUnit(this=0x0000000112870800)
+ 726 at Sema.cpp:684
## frame #12: 0x000000010b59ee29
libclangParse.dylib`clang::Parser::ParseTopLevelDecl(this=0x0000000112873600,
Result=0x00007fff5fbf9b50) + 937 at Parser.cpp:617
## frame #13: 0x000000010b47e2b0
libclangParse.dylib`clang::ParseAST(S=0x0000000112870800, PrintStats=false,
SkipFunctionBodies=false) + 960 at ParseAST.cpp:147
## frame #14: 0x00000001082b0725
libclangFrontend.dylib`clang::ASTFrontendAction::ExecuteAction(this=0x000000011200cb70)
+ 485 at FrontendAction.cpp:557
## frame #15: 0x0000000106eb62fc
libclangCodeGen.dylib`clang::CodeGenAction::ExecuteAction(this=0x000000011200cb70)
+ 7372 at CodeGenAction.cpp:869
## frame #16: 0x00000001082af9c0
libclangFrontend.dylib`clang::FrontendAction::Execute(this=0x000000011200cb70)
+ 112 at FrontendAction.cpp:458
## frame #17: 0x00000001081e86f6
libclangFrontend.dylib`clang::CompilerInstance::ExecuteAction(this=0x000000011200ba30,
Act=0x000000011200cb70) + 2278 at CompilerInstance.cpp:871
## frame #18: 0x00000001087c0a15
libclangFrontendTool.dylib`clang::ExecuteCompilerInvocation(Clang=0x000000011200ba30)
+ 6021 at ExecuteCompilerInvocation.cpp:249
## frame #19: 0x000000010001ef9a clang`cc1_main(Argv=ArrayRef<const char *>
@ 0x00007fff5fbfbfe0, Argv0="clang", MainAddr=0x000000010000ae00) + 4906 at
cc1_main.cpp:183
## frame #20: 0x000000010000ee0e clang`ExecuteCC1Tool(argv=ArrayRef<const
char *> @ 0x00007fff5fbfce88, Tool=(Data = "", Length = 0)) + 622 at
driver.cpp:299
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161011/92329580/attachment.html>
More information about the llvm-bugs
mailing list