]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/50835 (Lvalue-ness of conditional operator results is incorrect in a functi...
authorJason Merrill <jason@redhat.com>
Tue, 8 Nov 2011 17:10:09 +0000 (12:10 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 8 Nov 2011 17:10:09 +0000 (12:10 -0500)
commitca8dc274736dce2046bb557f7b5c5a5d0193fb3c
tree3e07a425ce3f8dbc0b60c88f2ef81e9501ce6e22
parente55cef40ed1f6f5b2a9933e0256ea23e66b1806c
re PR c++/50835 (Lvalue-ness of conditional operator results is incorrect in a function template)

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.

From-SVN: r181174
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]