<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ToT clang crashes in Sema::InstantiateMemInitializers"
href="https://llvm.org/bugs/show_bug.cgi?id=30664">30664</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ToT clang crashes in Sema::InstantiateMemInitializers
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vsk@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17425" name="attach_17425" title="Reduced reproducer">attachment 17425</a> <a href="attachment.cgi?id=17425&action=edit" title="Reduced reproducer">[details]</a></span>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>