Issue 161516
Summary [flang][openmp] Fujitsu test 0523_0012 with "declare simd" fails to compile
Labels flang:openmp
Assignees
Reporter eugeneepshteyn
    Test: https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0523/0523_0012.f90
Compilation error:
```
$ flang -c -fopenmp 0523_0012.f90
error: Semantic errors in 0523_0012.f90
0523_0012.f90:13:20: error: The name 'add' should refer to a procedure
  !$omp declare simd(add)
 ^^^
0523_0012.f90:13:20: The name 'add' has been implicitly declared
 !$omp declare simd(add)
                     ^^^
```
Well, `add()` is a function, so the error is at least misleading. Perhaps the problem is that `add()` is the function that contains `declare simd` construct?

flang version:
```
flang version 22.0.0git (https://github.com/llvm/llvm-project 89ed5255b9ee88119e409a6d986eb1ad0e8f08e3)
Target: x86_64-unknown-linux-gnu
Thread model: posix
```

Compilation error started happening sometime between `157b81a910efadf7fa08f6958ca7f7e2200c0ca8` and `114b3b8b04fe5aae4143e30078637015a9e077ce`
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to