https://bugs.llvm.org/show_bug.cgi?id=48145

            Bug ID: 48145
           Summary: omp critical clause does not allow optional name
                    argument
           Product: flang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Fortran IR
          Assignee: unassignedb...@nondot.org
          Reporter: narom...@anl.gov
                CC: david.tr...@arm.com, eric.schwe...@pgroup.com,
                    jper...@nvidia.com, kirankuma...@gmail.com,
                    llvm-bugs@lists.llvm.org

Created attachment 24147
  --> https://bugs.llvm.org/attachment.cgi?id=24147&action=edit
omp critical clause with name argument

This reduced test case compiles with gfortran and ifort.

The optional [name] argument on the omp critical clause is not accepted by the
Flang front-end.

[naromero@naromero-desktop bugs]$ flang -c -fopenmp omp_critical.F90
omp_critical.F90:5:19: error: Internal: no symbol found for 'foo'
    !$OMP CRITICAL (foo)
                    ^^^
omp_critical.F90:7:23: error: Internal: no symbol found for 'foo'
    !$OMP END CRITICAL (foo)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to