[Bug c/84853] [7 Regression] ICE: verify_gimple failed (expand_shift_1)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 22 20:41:00 GMT 2018


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 20:40:45 2018
New Revision: 261922

URL: https://gcc.gnu.org/viewcvs?rev=261922&root=gcc&view=rev
Log:
        Backported from mainline
        2018-03-15  Jakub Jelinek  <jakub@redhat.com>

        PR c/84853
        * c-typeck.c (build_binary_op) <case RSHIFT_EXPR, case LSHIFT_EXPR>:
        If code1 is INTEGER_TYPE, only allow code0 VECTOR_TYPE if it has
        INTEGER_TYPE element type.

        * gcc.dg/pr84853.c: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr84853.c
Modified:
    branches/gcc-7-branch/gcc/c/ChangeLog
    branches/gcc-7-branch/gcc/c/c-typeck.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list