https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123989

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <[email protected]>:

https://gcc.gnu.org/g:0d51ed19504bcaa540763423763bb97227ed6c1c

commit r16-7487-g0d51ed19504bcaa540763423763bb97227ed6c1c
Author: Patrick Palka <[email protected]>
Date:   Thu Feb 12 14:44:56 2026 -0500

    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 <[email protected]>
    Reviewed-by: Jason Merrill <[email protected]>
  • [Bug c++/123989] N... drippy_carnation182 at simplelogin dot com via Gcc-bugs
    • [Bug c++/1239... ppalka at gcc dot gnu.org via Gcc-bugs
    • [Bug c++/1239... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to