<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58172>58172</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang frontend crash
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
adrianimboden
</td>
</tr>
</table>
<pre>
version: 15.0.1
[source_and_script.tar.gz](https://github.com/llvm/llvm-project/files/9719102/source_and_script.tar.gz)
stacktrace:
```
#0 0x000055ec4db8f733 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/clang-15+0x34f1733)
#1 0x000055ec4db8d0ee llvm::sys::RunSignalHandlers() (/usr/bin/clang-15+0x34ef0ee)
#2 0x000055ec4db8fe7f SignalHandler(int) Signals.cpp:0:0
#3 0x00007f9ca4b8d420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
#4 0x000055ec507baf39 clang::Sema::CorrectDelayedTyposInExpr(clang::Expr*, clang::VarDecl*, bool, llvm::function_ref<clang::ActionResult<clang::Expr*, true> (clang::Expr*)>) (/usr/bin/clang-15+0x611cf39)
#5 0x000055ec50a2097e clang::Sema::ActOnReturnStmt(clang::SourceLocation, clang::Expr*, clang::Scope*) (/usr/bin/clang-15+0x638297e)
#6 0x000055ec501efeae clang::Parser::ParseReturnStatement() (/usr/bin/clang-15+0x5b51eae)
#7 0x000055ec501e80db clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&) (/usr/bin/clang-15+0x5b4a0db)
#8 0x000055ec501e75bf clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/usr/bin/clang-15+0x5b495bf)
#9 0x000055ec501f2491 clang::Parser::ParseCompoundStatementBody(bool) (/usr/bin/clang-15+0x5b54491)
#10 0x000055ec501e7f09 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&) (/usr/bin/clang-15+0x5b49f09)
#11 0x000055ec501e75bf clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/usr/bin/clang-15+0x5b495bf)
#12 0x000055ec501ec9ae clang::Parser::ParseIfStatement(clang::SourceLocation*) (/usr/bin/clang-15+0x5b4e9ae)
#13 0x000055ec501e80cb clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&) (/usr/bin/clang-15+0x5b4a0cb)
#14 0x000055ec501e75bf clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*) (/usr/bin/clang-15+0x5b495bf)
#15 0x000055ec501f2491 clang::Parser::ParseCompoundStatementBody(bool) (/usr/bin/clang-15+0x5b54491)
#16 0x000055ec501f3d40 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/usr/bin/clang-15+0x5b55d40)
#17 0x000055ec501c953b clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/usr/bin/clang-15+0x5b2b53b)
#18 0x000055ec5021ef37 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::SourceLocation*, clang::Parser::ForRangeInit*) (/usr/bin/clang-15+0x5b80f37)
#19 0x000055ec501c7c6d clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/usr/bin/clang-15+0x5b29c6d)
#20 0x000055ec501c774e clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/usr/bin/clang-15+0x5b2974e)
#21 0x000055ec501c673b clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsingDeclSpec*) (/usr/bin/clang-15+0x5b2873b)
#22 0x000055ec501c4310 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) (/usr/bin/clang-15+0x5b26310)
#23 0x000055ec501befde clang::ParseAST(clang::Sema&, bool, bool) (/usr/bin/clang-15+0x5b20fde)
#24 0x000055ec4e8504e2 clang::FrontendAction::Execute() (/usr/bin/clang-15+0x41b24e2)
#25 0x000055ec4e7af9c2 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/bin/clang-15+0x41119c2)
#26 0x000055ec4e92bed3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/bin/clang-15+0x428ded3)
#27 0x000055ec4c568e33 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang-15+0x1ecae33)
#28 0x000055ec4c566dd7 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#29 0x000055ec4c5669bc clang_main(int, char**) (/usr/bin/clang-15+0x1ec89bc)
#30 0x00007f9ca46dd083 __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:342:3
#31 0x000055ec4c562eee _start (/usr/bin/clang-15+0x1ec4eee)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWUtzozgQ_jX2hQoliffBByeZ7KYqW5mKU3N1CdE47GJghcgk8-u3JfxAxHGYmctU7aQcDAh1f_11q7uR0zp7XTyDbIu6mnlLhwYucemMXM_IcncMLtu6kwLWvMrWrZBFo1zFpbv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