[flang] [llvm] [Flang][OMP]Add support for DECLARE MAPPER parsing and semantics (PR #115160)
Mats Petersson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 12:02:51 PST 2024
================
@@ -0,0 +1,10 @@
+! RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=50
+! Test the source code starting with omp syntax
+
+type, abstract :: t1
+ integer :: y
+end type t1
+
+!ERROR: ABSTRACT derived type may not be used here
----------------
Leporacanthicus wrote:
There is a standard check as part of the "use a derived type" that checks that the type isn't an abstract type in resolve-names.cpp. I tried writing my own check earlier, but this check happens before the one in the check-omp-structure.cpp, so I think it's OK to use the existing one. Unless I'm missing something.
https://github.com/llvm/llvm-project/pull/115160
More information about the llvm-commits
mailing list