summaryrefslogtreecommitdiffstats
path: root/libjava/java/util
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-21 16:20:12 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-21 16:20:12 +0000
commit79f25e9a22ef1511e71ffa74fa62658cf72b1029 (patch)
treebdfafe1c2a29f4aa6bfe3cb981e141f67ff30e50 /libjava/java/util
parentbee540cda577d1b9ebba9dede801c19d8f5ce6ae (diff)
downloadppe42-gcc-79f25e9a22ef1511e71ffa74fa62658cf72b1029.tar.gz
ppe42-gcc-79f25e9a22ef1511e71ffa74fa62658cf72b1029.zip
PR c++/7503
* tree.c (lvalue_p_1): Disallow MIN_EXPR and MAX_EXPR as lvalues if either operand has side-effects. * typeck.c (rationalize_conditional_expr): Assert that neither operand of MIN_EXPR or MAX_EXPR has side-effects. (build_modify_expr): Add support for MIN_EXPR and MAX_EXPR. Check that the "lhs" is a valid lvalue, i.e. that neither operand of a MIN_EXPR or MAX_EXPR has a side-effect. * g++.dg/opt/pr7503-1.C: New testcase for COND_EXPR lvalues. * g++.dg/opt/pr7503-2.C: New testcase for <? and >? lvalues. * g++.dg/opt/pr7503-3.C: New testcase for invalid <? lvalue errors. * g++.dg/opt/pr7503-4.C: New testcase for <?= and >?= assignments. * g++.dg/opt/pr7503-5.C: New testcase for side-effects with <?=. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87810 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud