<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/107821>107821</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang 17.0.6 compiler error: "clang frontend command failed with exit code 139"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
guyin456
</td>
</tr>
</table>
<pre>
I updated to the newest version of Clang 17.0.6 ( 79fffa20ed39ec9ef0ddc51e6d2e95975bc25d2d) and we are getting a frontend error.
Compiler output:
```
2024-09-09 15:27:58.000 1. <eof> parser at end of file
2024-09-09 15:27:58.000 2. teams/reco-arch/kaifg/csrc/fgf/fgf_register.h:222:3: instantiating function definition 'kai_fg::RegisterViewsHelper<kai_fg::FGFArrayColumnInnerAtStatic, -1, flatvector::Array<long>, flatvector::Array<long>>::RegisterViewsHelper'
2024-09-09 15:27:58.000 3. teams/reco-arch/kaifg/csrc/fgf/fgf_register.h:119:15: instantiating function definition 'kai_fg::detail::RegisterViewsHelperImpl<std::tuple<>, std::tuple<>, kai_fg::FGFArrayColumnInnerAtStatic, 2, flatvector::Array<long>, flatvector::Array<long>>::Build'
2024-09-09 15:27:58.000 4. teams/reco-arch/kaifg/csrc/fgf/fgf_register.h:119:15: instantiating function definition 'kai_fg::detail::RegisterViewsHelperImpl<std::tuple<flatvector::Array<long>>, std::tuple<>, kai_fg::FGFArrayColumnInnerAtStatic, 1, flatvector::Array<long>>::Build'
2024-09-09 15:27:58.000 5. teams/reco-arch/kaifg/csrc/fgf/fgf_register.h:144:15: instantiating function definition 'kai_fg::detail::RegisterViewsHelperImpl<std::tuple<flatvector::Array<long>, flatvector::Array<long>>, std::tuple<>, kai_fg::FGFArrayColumnInnerAtStatic, 0>::Build'
2024-09-09 15:27:58.000 6. /media/ssd1/jenkins/cppTools/distcc/clang-17.0.6/bin/../include/c++/v1/tuple:1833:26: instantiating function definition 'std::apply<(lambda at teams/reco-arch/kaifg/csrc/fgf/fgf_register.h:148:20), std::tuple<flatvector::Array<long>, flatvector::Array<long>> &>'
2024-09-09 15:27:58.000 7. /media/ssd1/jenkins/cppTools/distcc/clang-17.0.6/bin/../include/c++/v1/tuple:1823:26: instantiating function definition 'std::__apply_tuple_impl<(lambda at teams/reco-arch/kaifg/csrc/fgf/fgf_register.h:148:20), std::tuple<flatvector::Array<long>, flatvector::Array<long>> &, 0UL, 1UL>'
2024-09-09 15:27:58.000 #0 0x0000562020dc8d97 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/distcc/clang-17.0.6/bin/clang+++0x3ea5d97)
2024-09-09 15:27:58.000 #1 0x0000562020dc8b13 llvm::sys::CleanupOnSignal(unsigned long) (/home/distcc/clang-17.0.6/bin/clang+++0x3ea5b13)
2024-09-09 15:27:58.000 #2 0x0000562020d865c1 CrashRecoverySignalHandler(int) (.__uniq.38239496060036942940988527518170416919.llvm.10835154612738550066) CrashRecoveryContext.cpp:0:0
2024-09-09 15:27:58.000 #3 0x00007f826e1e1630 __restore_rt sigaction.c:0:0
2024-09-09 15:27:58.000 #4 0x00005620247f50d1 clang::Sema::TemplateParameterListsAreEqual(clang::NamedDecl const*, clang::TemplateParameterList*, clang::NamedDecl const*, clang::TemplateParameterList*, bool, clang::Sema::TemplateParameterListEqualKind, clang::SourceLocation)::$_0::operator()() const (.__uniq.28277423733606557018459929003813365289) SemaTemplate.cpp:0:0
2024-09-09 15:27:58.000 #5 0x00007ffea0079490
2024-09-09 15:27:58.000 clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
2024-09-09 15:27:58.000 clang version 17.0.6 (https://git.corp.kuaishou.com/cpptools/build/llvm.git 79fffa20ed39ec9ef0ddc51e6d2e95975bc25d2d)
2024-09-09 15:27:58.000 Target: x86_64-unknown-linux-gnu
2024-09-09 15:27:58.000 Thread model: posix
2024-09-09 15:27:58.000 InstalledDir: /home/distcc/clang-17.0.6/bin
2024-09-09 15:27:58.000 clang++: note: diagnostic msg:
2024-09-09 15:27:58.000 ********************
2024-09-09 15:27:58.000
2024-09-09 15:27:58.000 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
2024-09-09 15:27:58.000 Preprocessed source(s) and associated run script(s) are located at:
2024-09-09 15:27:58.000 clang++: note: diagnostic msg: /tmp/array_column-e43221.cpp
2024-09-09 15:27:58.000 clang++: note: diagnostic msg: /tmp/array_column-e43221.sh
2024-09-09 15:27:58.000 clang++: note: diagnostic msg:
2024-09-09 15:27:58.000
2024-09-09 15:27:58.000 ********************
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUWF9z26oS_zT4hbEGgf4--EFxrTZzMyedxr330YNhJXMigQ6g_Pn2d5CcNO1pr52m07lnRiGYWZbd329ZFrhzqtUAK5ReoPTdgo_-YOyqHR-VTtJssTfycXWJx0FyDxJ7g_0BsIZ7cB7fgXXKaGwavO64bnGcRyTKMKIFzsumaTglIFkJooSGSCnSGDJJoUzLPN0LmkoqES0x1xLfA-YWcAveK91ijhtrtActMVhrbITIO0SqtekH1YHFZvTD6BGr5nGUkeM3_aSEJktSLkmJ4xSxiuaIVWkREUJwHCFSIrYG0yC2wQO3DizmHoe1TIMb1cFpLTRo8cB7h2htQZglt-KAaH3LVdMiWgtnBaJ10zZzu7PQKufBRoegilLEKoZYhZV2nmuv-OR3M2rhA6YSGqXV1EU0v-Vq17TBXVZ9Oir6t4J79wG6ASxi65cS9fu6spY_rk039vpSa7CVv_HcK4HoGi_j0DYd93cgvLHzpGkGYuvO6BaxzTki4fuRRTQ_DSJ7G4hxXIY2_SkUJXiuuh_af9kPHWJr5-Us4sehA8TWR2R-NP4KFugvJuFiVJ08C_bknwf7GSD8GlbO2hqvhzx9I-RJ8n8H-Xk4_RpWyE9Ank15ntY9SMURrZ2TMaL1n6BvlQ40iGHYGtOFrlTOi4C_CMfYcj7GEK33SiNaRxGitdKiGyUEGUQvpq--CwqPXlVxwUI-p9nZJD0Dw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