| Issue |
168698
|
| Summary |
Frontend crash (exit code 139) when compiling custom variant implementation
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
jozef-plsko
|
After moving a templated method implementation of my custom variant outside the class body, Clang 18.1.3 crashes during compilation with the following output:
```
clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Ubuntu clang version 18.1.3 (1ubuntu1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/mainSandbox-5ebe94.cpp
clang++: note: diagnostic msg: /tmp/mainSandbox-5ebe94.sh
clang++: note: diagnostic msg:
********************
gmake[2]: *** [CMakeFiles/btlSandbox.dir/build.make:160: CMakeFiles/btlSandbox.dir/home/jozef/dev/cpp/current/betterTemplateLibrary/sandbox/source/mainSandbox.cpp.o] Error 1
gmake[2]: Leaving directory '/home/jozef/dev/cpp/current/betterTemplateLibrary/sandbox/build/artifacts/build_tests'
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/btlSandbox.dir/all] Error 2
gmake[1]: Leaving directory '/home/jozef/dev/cpp/current/betterTemplateLibrary/sandbox/build/artifacts/build_tests'
gmake: *** [Makefile:91: all] Error 2
```
The full crash dump and the preprocessed source/run script generated by Clang are attached exactly as emitted.
[mainSandbox-5ebe94.cpp](https://github.com/user-attachments/files/23627370/mainSandbox-5ebe94.cpp)
[mainSandbox-5ebe94.sh](https://github.com/user-attachments/files/23627371/mainSandbox-5ebe94.sh)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs