re PR c/84999 (ICE in make_vector_type, at tree.c:9561)
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Mar 2018 21:48:47 +0000 (22:48 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Mar 2018 21:48:47 +0000 (22:48 +0100)
commitaa1c94299c2b81f7728011ada92eb7761144b854
treeadb31ecef06999c3280ce6a8428edd5a4a32d542
parente299d4fc1a9a3d30ed9c1b7df743b2fd84c9f03a
re PR c/84999 (ICE in make_vector_type, at tree.c:9561)

PR c/84999
* c-typeck.c (build_binary_op): If c_common_type_for_size fails when
building vector comparison, diagnose it and return error_mark_node.

* c-c++-common/pr84999.c: New test.

From-SVN: r258747
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr84999.c [new file with mode: 0644]