OpenMP: Improve map-clause error message for array function parameter (PR96678)
authorTobias Burnus <tobias@codesourcery.com>
Tue, 25 Aug 2020 15:46:13 +0000 (17:46 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 25 Aug 2020 15:46:41 +0000 (17:46 +0200)
commit3d5ed337cb354c2f85a9caf60377bad887b18d53
tree1f1fbb20cd42c8e5c8e77d63f3116ae91a23f4cb
parent24f2764521d8f27760f03f626a4f20f4c82b7c73
OpenMP: Improve map-clause error message for array function parameter (PR96678)

gcc/c/ChangeLog:

PR c/96678
* c-typeck.c (handle_omp_array_sections_1): Talk about
array function parameter in the error message.

gcc/cp/ChangeLog:

PR c/96678
* semantics.c (handle_omp_array_sections_1): Talk about
array function parameter in the error message.

gcc/testsuite/ChangeLog:

PR c/96678
* c-c++-common/gomp/map-4.c: New test.
* c-c++-common/gomp/depend-1.c: Update dg-error.
* c-c++-common/gomp/map-1.c: Likewise.
* c-c++-common/gomp/reduction-1.c: Likewise.
* g++.dg/gomp/depend-1.C: Likewise.
* g++.dg/gomp/depend-2.C: Likewise.
gcc/c/c-typeck.c
gcc/cp/semantics.c
gcc/testsuite/c-c++-common/gomp/depend-1.c
gcc/testsuite/c-c++-common/gomp/map-1.c
gcc/testsuite/c-c++-common/gomp/map-4.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/gomp/reduction-1.c
gcc/testsuite/g++.dg/gomp/depend-1.C
gcc/testsuite/g++.dg/gomp/depend-2.C