]> git.ipfire.org Git - thirdparty/gcc.git/commit
openacc: fix ICE for non-decl expression in non-contiguous array base-pointer
authorChung-Lin Tang <cltang@codesourcery.com>
Thu, 19 Aug 2021 08:17:02 +0000 (16:17 +0800)
committerChung-Lin Tang <cltang@codesourcery.com>
Thu, 19 Aug 2021 11:42:33 +0000 (19:42 +0800)
commit4e34710679ac084d7ca15ccf387c1b6f1e64c2d1
tree287fa2fbd2bbb4ee7ee1b5cfa7ffa90fee5a8403
parent3fbe12e6a8f886301a397ea926e3fc5f1697cea7
openacc: fix ICE for non-decl expression in non-contiguous array base-pointer

Currently, we do not support cases like struct-members as the base-pointer
for an OpenACC non-contiguous array. Mark such cases as unsupported in the
C/C++ front-ends, instead of ICEing on them.

gcc/c/ChangeLog:

* c-typeck.c (handle_omp_array_sections_1): Robustify non-contiguous
array check and reject non-DECL base-pointer cases as unsupported.

gcc/cp/ChangeLog:

* semantics.c (handle_omp_array_sections_1): Robustify non-contiguous
array check and reject non-DECL base-pointer cases as unsupported.
gcc/c/c-typeck.c
gcc/cp/semantics.c