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

--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:b14ae44ec26f932d019c5eb54c2867bd905c587f

commit r13-9610-gb14ae44ec26f932d019c5eb54c2867bd905c587f
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Apr 15 11:23:57 2025 -0400

    c++: constexpr, trivial, and non-alias target [PR111075]

    On Darwin and other targets with !can_alias_cdtor, we instead go to
    maybe_thunk_ctor, which builds a thunk function that calls the general
    constructor.  And then cp_fold tries to constant-evaluate that call, and we
    ICE because we don't expect to ever be asked to constant-evaluate a call to
    a trivial function.

    No new test because this fixes g++.dg/torture/tail-padding1.C on affected
    targets.

            PR c++/111075

    gcc/cp/ChangeLog:

            * constexpr.cc (cxx_eval_call_expression): Allow trivial
            call from a thunk.

    (cherry picked from commit 628aecb050bbbc4bb0bd4468c474623e20d64e21)

Reply via email to