[flang-commits] [flang] [flang] To issue error message for unsupported usage of vector type. (PR #215248)
Kelvin Li via flang-commits
flang-commits at lists.llvm.org
Wed Aug 12 07:02:35 PDT 2026
================
@@ -0,0 +1,45 @@
+! RUN: %python %S/../test_errors.py %s %flang_fc1
+! REQUIRES: target=powerpc{{.*}}
+
+! Test that vector types are rejected in polymorphic contexts:
+! 1. ALLOCATE SOURCE=/MOLD= must not have a vector type expression
+! 2. RHS of intrinsic assignment must not be a vector type when LHS is polymorphic
+! (uses Fortran standard auto-allocation, no prior ALLOCATE)
+! 3. SAME_TYPE_AS / EXTENDS_TYPE_OF must not receive a vector type argument
+! (enforced via IsExtensibleType returning false for vector types)
----------------
kkwli wrote:
Nit: This line is not necessary.
https://github.com/llvm/llvm-project/pull/215248
More information about the flang-commits
mailing list