re PR c++/84171 (ICE with -Wsign-compare)
authorMarek Polacek <polacek@redhat.com>
Fri, 2 Mar 2018 17:51:24 +0000 (17:51 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 2 Mar 2018 17:51:24 +0000 (17:51 +0000)
commit0805d020d789e40557531df22565eae7809e7f17
tree683423e050a408f0de70ca9f9cae3994238bb6d2
parent7299275f74a31f7f3774ade89c7447fc6fb7cf98
re PR c++/84171 (ICE with -Wsign-compare)

PR c++/84171
* c-warn.c (warn_for_sign_compare): Bail out if any of the operands
is erroneous.

* g++.dg/warn/Wsign-compare-8.C: New test.

From-SVN: r258147
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsign-compare-8.C [new file with mode: 0644]