Hi Chung-Lin,
Chung-Lin Tang wrote:
this patch fixes a ICE when invalid iterator maps are encountered.
Should've been a setting of 'remove = true' instead of returning
error_mark_node.
Tested on x86_64-linux + nvptx offloading without regressions.
Okay for mainline?
LGTM. Thanks for the patch!
Tobias
gcc/c/ChangeLog:
* c-typeck.cc (c_finish_omp_clauses): Adjust to set 'remove = true'
upon error.
gcc/cp/ChangeLog:
* semantics.cc (finish_omp_clauses): Adjust to set 'remove = true' upon
error.
gcc/testsuite/ChangeLog
* c-c++-common/gomp/target-map-iterators-7.c: New test.