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

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

https://gcc.gnu.org/g:8a42538f9693a6608bb733860adec75a691f1940

commit r16-1053-g8a42538f9693a6608bb733860adec75a691f1940
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Jun 2 08:36:22 2025 -0400

    c++: __has_trivial_destructor regression

    We don't want the new call to get_dtor to cause function instantiation.

            PR c++/107600

    gcc/cp/ChangeLog:

            * semantics.cc (trait_expr_value) [CPTK_HAS_TRIVIAL_DESTRUCTOR]:
            Add cp_unevaluated.

    gcc/testsuite/ChangeLog:

            * g++.dg/ext/has_trivial_destructor-3.C: New test.

Reply via email to