andykaylor wrote: I should mention that the problem was introduced by https://github.com/llvm/llvm-project/pull/143932 Top-of-trunk clang doesn't report an error for this situation. https://github.com/llvm/llvm-project/pull/143994