OSDN Git Service

PR c++/50835
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 2011 17:10:09 +0000 (17:10 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 2011 17:10:09 +0000 (17:10 +0000)
commitb3166e786fb2d19c093977e848cafa630b05a224
tree3e07a425ce3f8dbc0b60c88f2ef81e9501ce6e22
parent6886ca411a8a72689e8ff3f9cd0c989a7e8b2522
PR c++/50835
* typeck.c (build_x_conditional_expr): Preserve lvalue/xvalueness.
* tree.c (lvalue_kind) [NON_DEPENDENT_EXPR]: Return clk_ordinary
in C++98.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181174 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/lvalue2.C [new file with mode: 0644]