aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/java/io
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2026-02-12 14:44:56 -0500
committerPatrick Palka <ppalka@redhat.com>2026-02-12 14:44:56 -0500
commit0d51ed19504bcaa540763423763bb97227ed6c1c (patch)
treebb5c0e18e5f35a43a661286873c4c1f60f6ad3f2 /libjava/classpath/gnu/java/io
parent1a0b276f69f535244cf8d0983db2ebbc537de536 (diff)
downloadgcc-0d51ed19504bcaa540763423763bb97227ed6c1c.zip
gcc-0d51ed19504bcaa540763423763bb97227ed6c1c.tar.gz
gcc-0d51ed19504bcaa540763423763bb97227ed6c1c.tar.bz2
c++: evaluation order of xobj memfn call [PR123989]
The object argument of an xobj memfn call needs to be evaluated before its formal arguments, like with an iobj memfn call. This patch generalizes the existing such handling in cp_gimplify_expr for METHOD_TYPE callees to also accept xobj memfn callees. PR c++/123989 gcc/cp/ChangeLog: * cp-gimplify.cc (cp_gimplify_expr) <case CALL_EXPR>: Evaluate the object argument of an xobj memfn call first too. gcc/testsuite/ChangeLog: * g++.dg/cpp23/explicit-obj-eval-order.C: New test. Reviewed-by: Marek Polacek <polacek@redhat.com> Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/classpath/gnu/java/io')
0 files changed, 0 insertions, 0 deletions