re PR c/68412 (ICE with -Wall -Wextra in fold_binary_loc())
authorMarek Polacek <polacek@redhat.com>
Thu, 19 Nov 2015 22:04:00 +0000 (22:04 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 19 Nov 2015 22:04:00 +0000 (22:04 +0000)
commit433068ccab80943a0b1dac0fff62d0cfc5c50acb
tree6ace05e2fa0c95d7ed9650e5d002ddcb7016f842
parent09b574dda9435d300108fa98e1f5afd873ee9001
re PR c/68412 (ICE with -Wall -Wextra in fold_binary_loc())

PR c/68412
* c-typeck.c (parser_build_binary_op): Properly handle
C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.

* gcc.dg/pr68412-2.c: New test.
* gcc.dg/pr68412.c: New test.

From-SVN: r230627
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68412-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr68412.c [new file with mode: 0644]