[clang] [Clang][Sema] Do not accept "vector _Complex" for AltiVec/ZVector (PR #90467)

Chen Zheng via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 19:54:19 PDT 2024


================
@@ -1191,6 +1191,10 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) {
 
   // Validate and finalize AltiVec vector declspec.
   if (TypeAltiVecVector) {
+    // Complex vector types are not supported.
+    if (TypeSpecComplex != TSC_unspecified)
+      S.Diag(TSCLoc, diag::err_invalid_vector_complex_decl_spec);
----------------
chenzheng1030 wrote:

Should we stop diagnosing other errors in this function?

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


More information about the cfe-commits mailing list