Skip to content

[flang][openmp] Fujitsu tests 0523_0011 and 0523_0012 with "declare simd" fail to compile #161516

@eugeneepshteyn

Description

@eugeneepshteyn

Tests:

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions