Skip to content

[flang][OpenMP] Incorrect execution of Fujitsu tests 1052_0201, 1052_0205 #142838

Open
@eugeneepshteyn

Description

@eugeneepshteyn

Test source: https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/1052/1052_0201.f90
https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/1052/1052_0205.f90

Sometimes compiling/running this test results in a segmentation faul:

$ flang -fopenmp 1052_0201.f90 && ./a.out
flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
1052_0201.f90:30:9: warning: OpenMP directive MASTER has been deprecated, please use MASKED instead.
    !$omp master
          ^^^^^^
Segmentation fault (core dumped)

Sometimes it's incorrect output:

$ flang -fopenmp 1052_0201.f90 && ./a.out
flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
1052_0201.f90:30:9: warning: OpenMP directive MASTER has been deprecated, please use MASKED instead.
    !$omp master
          ^^^^^^
 NG 1
 NG 3
 NG 4
 NG 5
 NG 6
 NG 7
 NG 8
 NG 9
 NG 10
 NG 11
...

flang version:

$ flang --version
flang version 21.0.0git (https://github.com/eugeneepshteyn/llvm-project.git cf348e886d0b30a4bf3e810efc00b2da0f7a4322)
Target: x86_64-unknown-linux-gnu
Thread model: posix
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions