I'm seeing a crash that affects LLVM 17 and 18, cross compiling on Ubuntu 22.04 for Windows ARM via clang-cl. Headers are coming from the Windows 10 SDK and from Visual Studio 2022 17.4.
I've reduced the code down to the simplest case I can, and this source is attached, along with the bug report files. Commenting out any of the std::vectors or the line towards the end containing emplace_back avoids the crash. Removing any of these three command line parameters also avoids the crash: /EHa /clang:-O3 /Zi. I get no warnings either for -Wall -Wpedantic nor from clang-tidy.
I'm seeing a crash that affects LLVM 17 and 18, cross compiling on Ubuntu 22.04 for Windows ARM via clang-cl. Headers are coming from the Windows 10 SDK and from Visual Studio 2022 17.4.
I've reduced the code down to the simplest case I can, and this source is attached, along with the bug report files. Commenting out any of the
std::vectors
or the line towards the end containingemplace_back
avoids the crash. Removing any of these three command line parameters also avoids the crash:/EHa /clang:-O3 /Zi
. I get no warnings either for-Wall -Wpedantic
nor fromclang-tidy
.llvm17_crash.cpp.txt llvm17_crash-d5b7e4.cpp.txt llvm17_crash-d5b7e4.sh.txt
Terminal output: