[flang-commits] [flang] [flang][OpenMP] Catch threadprivate common block vars that appear in equivalence (PR #127642)

Steve Scalpone via flang-commits flang-commits at lists.llvm.org
Fri Feb 21 07:17:46 PST 2025


sscalpone wrote:

Hi @luporl , I think this change caused fujitsu tests 0685 0685_0007.f90 to change behavior.

Before, it was compiling, executing, and matching the expected output.

Now, there's a compile-time error:

```
0685/0685_0007.f90:3:22: error: A variable in a THREADPRIVATE directive cannot appear in an EQUIVALENCE statement (variable 'ia' from common block '/com1/')
  !$omp threadprivate(/com1/)
```

I am not an expert in OpenMP semantics.  Shall we update the test's expected output?

@ohno-fj  @kiranchandramohan  fyi

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


More information about the flang-commits mailing list