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

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

https://gcc.gnu.org/g:6bace0ed49aea613ccd6c4f3c21a9ef0473fe62b

commit r16-5439-g6bace0ed49aea613ccd6c4f3c21a9ef0473fe62b
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.

Reply via email to