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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jakub Jelinek
<[email protected]>:

https://gcc.gnu.org/g:1788588589a534dd9b732f1ddec10aefd5d689db

commit r15-10577-g1788588589a534dd9b732f1ddec10aefd5d689db
Author: Jakub Jelinek <[email protected]>
Date:   Thu Nov 20 08:19:32 2025 +0100

    c++: Fix error recovery ICE in tsubst_baselink [PR120876]

    The following testcase ICEs since r12-6080.  The problem is that
    lookup_fnfields can return NULL_TREE on failure, but the maybe_incomplete
    handling was added before the if (!baselink) handling and assumes that
    baselink is non-NULL (and BASELINK).

    The following patch reorders the if (maybe_incomplete) handling with
    if (!baselink).

    2025-11-20  Jakub Jelinek  <[email protected]>

            PR c++/120876
            * pt.cc (tsubst_baselink): Move maybe_incomplete handling after
            !baselink handling.

            * g++.dg/parse/crash81.C: New test.

    (cherry picked from commit 6bace0ed49aea613ccd6c4f3c21a9ef0473fe62b)

Reply via email to