https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94690

            Bug ID: 94690
           Summary: [OpenMP] omp ... distribute – lastprivate not
                    permitted and more issues
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: openmp, rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

Created attachment 48323
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48323&action=edit
[Patch, see comment 0 for issues] Add LASTPRIVATE to OMP_DISTRIBUTE_CLAUSES,
add a bunch of test cases

sollve_vv's test_target_teams_distribute_lastprivate.F90 fails as gfortran
misses 'lastprivate' in 'distribute' (missing from OMP_DISTRIBUTE_CLAUSES).

However, when trying to fortranify the C/C++ testcases pr66199-[3-9].c, some
more issues showed up:

* pr66199-4.f90 + pr66199-5.f90 do not recognize 'collapse(2)'
* pr66199-7.f90 fails with ‘d2’ not specified in enclosing ‘teams’,
  which might be a test case (conversion) bug.
* pr66199-9.f90 – gives an ICE in omp_add_variable
  (if 'lastprivate' is permitted, otherwise, it is rejected.)

[The C/C++ test cases were added in r228777 alias
r6-3899-gd9a6bd32adc40a7e1e5c72692a330f14453ad7f0 ]

Reply via email to