re PR c/81006 (ICE with zero-size array and #pragma omp task depend)
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Jun 2017 19:10:49 +0000 (21:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Jun 2017 19:10:49 +0000 (21:10 +0200)
commit8ab7005b1420687c0e31a28a4e6e9fd05bb7f22e
treeaec1d25f339f1ecbb52d004325a72dfac4ffc379
parent20e96b489ea501861c0bb6e509888275d682ed2f
re PR c/81006 (ICE with zero-size array and #pragma omp task depend)

PR c/81006
* c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
to sizetype before size_binop.

* semantics.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
to sizetype before size_binop.

* c-c++-common/gomp/pr81006.c: New test.

From-SVN: r249035
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr81006.c [new file with mode: 0644]