Issue 144599
Summary [flang][OpenMP] Wrong or unclear error message for Fujitsu test 0481_0038
Labels flang:openmp
Assignees
Reporter eugeneepshteyn
    When compiling Fujitsu test [0481_0038.f90](https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0481/0481_0038.f90) with OpenMP, get the following error:
```
$ flang -c -fopenmp 0481_0038.f90 
flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
error: Semantic errors in 0481_0038.f90
./0481_0038.f90:9:4: error: The atomic variable yy should occur exactly once among the arguments of the top-level MAX operator
 yy=max(1,1,1 ,yy+1)
     ^^^^^^^^^^^^^^^^
```
Well, it seems that `yy` occurs exactly once among the arguments of `max`. Either this check is incorrect, or the the error message needs to describe the problem better.

This error started happening between commits 28a4ed945dc101c9a7dbdc93d9461da67225f7dc (known good) and e64f8e043cdfc394fd31e157c8c5fb25ca85bd2f (first discovered bad). I haven't done a bisect, but 141d390dcb6cd174b07ca663e58f37ab24eee08a looks like a candidate commit.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to