[Bug c++/120876] [13/14 Regression] internal compiler error: Segmentation fault finish_id_expression since r12-6080
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 15 06:02:40 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120876
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:45755d4a2f37a77c7233fc2335602b0da6ba99ca
commit r14-12369-g45755d4a2f37a77c7233fc2335602b0da6ba99ca
Author: Jakub Jelinek <jakub@redhat.com>
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 <jakub@redhat.com>
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)
More information about the Gcc-bugs
mailing list