https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81006
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jun 8 19:23:34 2017 New Revision: 249038 URL: https://gcc.gnu.org/viewcvs?rev=249038&root=gcc&view=rev Log: 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. Added: branches/gcc-5-branch/gcc/testsuite/c-c++-common/gomp/pr81006.c Modified: branches/gcc-5-branch/gcc/c/ChangeLog branches/gcc-5-branch/gcc/c/c-typeck.c branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/semantics.c branches/gcc-5-branch/gcc/testsuite/ChangeLog