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

--- Comment #15 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:063564ecbfc618cd019f86216a0224e144effae1

commit r14-6511-g063564ecbfc618cd019f86216a0224e144effae1
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Dec 13 14:15:44 2023 -0500

    c++: TARGET_EXPR location in default arg [PR96997]

    My r14-6505-g52b4b7d7f5c7c0 change to copy the location in
    build_aggr_init_expr reopened PR96997; let's fix it properly this time, by
    clearing the location like we do for other trees.

            PR c++/96997

    gcc/cp/ChangeLog:

            * tree.cc (bot_manip): Check data.clear_location for TARGET_EXPR.

    gcc/testsuite/ChangeLog:

            * g++.dg/debug/cleanup2.C: New test.

Reply via email to