gregbedwell wrote: As I'm assuming that it's the same bug I've added another testcase ( https://godbolt.org/z/1ThE7nf6v ) to #152683. This was reduced from an assertion failure building a linear algebra library using clang. https://github.com/llvm/llvm-project/pull/149102