[clang] [clang] Reject references to vector types in `__builtin_vectorelements` (PR #219767)

Shengxin Pei via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 30 00:54:41 PDT 2026


================
@@ -457,6 +457,9 @@ features cannot lower the translation-unit ABI level;
   such as when the call is used as an `auto` non-type template argument.
 - Fixed a crash in ``__builtin_dump_struct`` when ``-Werror`` promotes
   format warnings to errors. (#GH211943)
+- Fixed an assertion failure when `__builtin_vectorelements` is applied to a
+  reference to a vector type; this is now diagnosed as an invalid argument type.
+  (#GH216997)
----------------
TPPPP72 wrote:

```suggestion
- Fixed an assertion failure when `__builtin_vectorelements` is applied to a
  reference to a vector type. (#GH216997)
```

https://github.com/llvm/llvm-project/pull/219767


More information about the cfe-commits mailing list