This repository provides minimal code to demomstrate possible issue with Clang 13.0.1 with MSVC-like command-line
The code is taken from https://github.com/BinomialLLC/basis_universal/blob/9009cae5407ef54f5030c1d0fabb1c2919c418bb/encoder/basisu_kernels_sse.cpp (modified)
Clang generates code that leads to segfault at runtine.
RelWithDebInfo configuration is affected only.
Possible workaround is to make the function extract_x86_extended_flags
inline
To see all the test-cases go to the github actions page. The code is compiled and tested in multiple scenarios.
The issue has been reported to llvm: llvm/llvm-project#56626