]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/ChangeLog
re PR c/68062 (ICE when comparing vectors)
authorMarek Polacek <polacek@redhat.com>
Wed, 27 Jan 2016 19:13:42 +0000 (19:13 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 27 Jan 2016 19:13:42 +0000 (19:13 +0000)
commitfa74a4bca84aabe0a1500e4fe5359895c1f07e55
tree89e14ac50918a33bab845eb73ca1f83e8ad5f26c
parent0afff540e652c77b409ce094f64cc2b033495785
re PR c/68062 (ICE when comparing vectors)

PR c/68062
* c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
to unsigned, if needed.  Add -Wsign-compare warning.

* typeck.c (cp_build_binary_op): Promote operand to unsigned, if
needed.  Add -Wsign-compare warning.

* c-c++-common/vector-compare-4.c: New test.

From-SVN: r232894
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/vector-compare-4.c [new file with mode: 0644]