OSDN Git Service

PR c++/44362
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jun 2010 18:42:42 +0000 (18:42 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Jun 2010 18:42:42 +0000 (18:42 +0000)
commitf6a0d96cae6269626562bd38ba85291f30625a82
tree26596117c2d7cb1fd741bf199a5856a892f747f4
parent347edd951cf6622e8dd35ff8a35ff8ae1a13bda3
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160289 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-var-10.c [new file with mode: 0644]