diff options
author | Tobias Burnus <tburnus@baylibre.com> | 2024-10-12 14:55:22 +0200 |
---|---|---|
committer | Tobias Burnus <tburnus@baylibre.com> | 2024-10-12 14:55:22 +0200 |
commit | 34b77d1b9ac53c89296a0d8bd7f4cf35eebd8001 (patch) | |
tree | fe73b3f972a0467b6929ee88e815902f29cf382a /gcc/fortran/dump-parse-tree.cc | |
parent | 5cf85a2fa38115b3fff2d0d7cd0770bef10f439b (diff) | |
download | gcc-34b77d1b9ac53c89296a0d8bd7f4cf35eebd8001.zip gcc-34b77d1b9ac53c89296a0d8bd7f4cf35eebd8001.tar.gz gcc-34b77d1b9ac53c89296a0d8bd7f4cf35eebd8001.tar.bz2 |
Fortran/OpenMP: Warn when mapping polymorphic variables
OpenMP (TR13) states for Fortran:
* For map: "If a list item has polymorphic type, the behavior is unspecified."
* "If the firstprivate clause is on a target construct and a variable is of
polymorphic type, the behavior is unspecified."
which this commit now warns for.
gcc/fortran/ChangeLog:
* openmp.cc (resolve_omp_clauses): Diagnose polymorphic mapping.
* trans-openmp.cc (gfc_omp_finish_clause): Warn when
polymorphic variable is implicitly mapped.
gcc/testsuite/ChangeLog:
* gfortran.dg/gomp/polymorphic-mapping.f90: New test.
* gfortran.dg/gomp/polymorphic-mapping-2.f90: New test.
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions