This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81006] ICE with zero-size array and #pragma omp task depend


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81006

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun  8 19:12:38 2017
New Revision: 249036

URL: https://gcc.gnu.org/viewcvs?rev=249036&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-7-branch/gcc/testsuite/c-c++-common/gomp/pr81006.c
Modified:
    branches/gcc-7-branch/gcc/c/ChangeLog
    branches/gcc-7-branch/gcc/c/c-typeck.c
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/semantics.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]