[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 6 14:38:13 PST 2025


================
@@ -78,7 +78,7 @@ typedef int __attribute__((ext_vector_type(0))) e4;                // expected-e
 // no support for vector enum type
 enum { e_2 } x3 __attribute__((vector_size(64))); // expected-error {{invalid vector element type}}
 
-int x4 __attribute__((ext_vector_type(64)));  // expected-error {{'ext_vector_type' attribute only applies to typedefs}}
+int x4 __attribute__((ext_vector_type(64)));
----------------
jhuber6 wrote:

Done

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


More information about the cfe-commits mailing list