[flang-commits] [flang] [flang][OpenMP] Skip implicit typing for DeclareSimdConstruct (PR #142415)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Tue Jun 3 02:24:35 PDT 2025
kiranchandramohan wrote:
> We should try to work out whether this actually is the desired behaviour. Doing this for declare simd causes the test at `Semantics/OpenMP/linear-clause01.f90` to fail because it seems to be expecting some errors:
>
> ```
> expect at 31: The list item 'var' specified without the REF 'linear-modifier' must be of INTEGER type@@ -6,0 +8 @@
> expect at 33: The type of 'var' has already been implicitly declared
> ```
In this case at least, removal of these expectations is correct.
expect at 31 : `var` is of type integer so the previous error was incorrect
expect at 33: The `var` was implicitly declared because the `linear` clause in `declare simd` declared the variable during its processing.
It is OK to handle this more generally in a separate PR. But please consider resetting SkipImplicitType in the `Post` function.
https://github.com/llvm/llvm-project/pull/142415
More information about the flang-commits
mailing list