diff options
| author | Patrick Palka <ppalka@redhat.com> | 2026-02-12 14:44:56 -0500 |
|---|---|---|
| committer | Patrick Palka <ppalka@redhat.com> | 2026-02-12 14:44:56 -0500 |
| commit | 0d51ed19504bcaa540763423763bb97227ed6c1c (patch) | |
| tree | bb5c0e18e5f35a43a661286873c4c1f60f6ad3f2 /libjava/classpath/gnu/java | |
| parent | 1a0b276f69f535244cf8d0983db2ebbc537de536 (diff) | |
| download | gcc-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')
0 files changed, 0 insertions, 0 deletions
