re PR c++/44362 (Bogus set-but-not-used warning)
authorJakub Jelinek <jakub@redhat.com>
Fri, 4 Jun 2010 18:42:42 +0000 (20:42 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Jun 2010 18:42:42 +0000 (20:42 +0200)
commit16c821230be0a70133754e1101b5b053f48bbb69
tree26596117c2d7cb1fd741bf199a5856a892f747f4
parent7d1f0f8a52db86fa860f131d32d23f1e72ecc93d
re PR c++/44362 (Bogus set-but-not-used warning)

PR c++/44362
* call.c (build_conditional_expr): If both arg2 and arg3 are lvalues
with the same type, call mark_lvalue_use on both.

* c-c++-common/Wunused-var-10.c: New test.

Co-Authored-By: Jason Merrill <jason@redhat.com>
From-SVN: r160289
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-var-10.c [new file with mode: 0644]