re PR c++/67863 (-Wtautological-compare warns when it shouldn't)
authorMarek Polacek <polacek@redhat.com>
Tue, 6 Oct 2015 17:56:23 +0000 (17:56 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 6 Oct 2015 17:56:23 +0000 (17:56 +0000)
commit46836b0e033c460d87146f5c635a4d026d2b77bb
tree31a6bbd29f3c460d9aa1e76daf7db63bc8532344
parent1f27e0541577f3d1f95339ea0086b65a64bc123e
re PR c++/67863 (-Wtautological-compare warns when it shouldn't)

PR c++/67863
* call.c (build_conditional_expr_1): Build the COND_EXPR with
a location.

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

From-SVN: r228540
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wtautological-compare-4.c [new file with mode: 0644]