re PR c/84853 (ICE: verify_gimple failed (expand_shift_1))
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Mar 2018 07:37:53 +0000 (08:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 15 Mar 2018 07:37:53 +0000 (08:37 +0100)
commit9bb45a958d5281b3979f538a05ffa80c6833c4f7
tree0138e2f3bf112fc983ceffbee9775c88c794fb80
parent8cb1151b6063dbbe6bd255d3f16d0071d6095c38
re PR c/84853 (ICE: verify_gimple failed (expand_shift_1))

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.

From-SVN: r258550
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84853.c [new file with mode: 0644]