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

--- Comment #10 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:716f4482c5617f0525a1853c447e525c3c1771ba

commit r16-6725-g716f4482c5617f0525a1853c447e525c3c1771ba
Author: Patrick Palka <[email protected]>
Date:   Mon Jan 12 11:21:14 2026 -0500

    c++: deferred noexcept parsing for friend tmpl spec [PR123189]

    Since we now defer noexcept parsing for templated friends, a couple of
    routines related to deferred parsing need to be updated to cope with friend
    template specializations -- their TI_TEMPLATE is a TREE_LIST rather than
    a TEMPLATE_DECL, and they don't introduce new template parameters.

            PR c++/123189

    gcc/cp/ChangeLog:

            * name-lookup.cc (binding_to_template_parms_of_scope_p):
            Gracefully handle TEMPLATE_INFO whose TI_TEMPLATE is a TREE_LIST.
            * pt.cc (maybe_begin_member_template_processing): For a friend
            template specialization consider its class context instead.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/noexcept92.C: New test.

    Reviewed-by: Jason Merrill <[email protected]>

Reply via email to