diff options
| author | Jakub Jelinek <jakub@redhat.com> | 2025-11-20 08:19:32 +0100 |
|---|---|---|
| committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-11-20 08:19:32 +0100 |
| commit | 6bace0ed49aea613ccd6c4f3c21a9ef0473fe62b (patch) | |
| tree | 7f43f9302f553a919d00686d8e9d4489f3cf6f7e /libjava/classpath/java/security | |
| parent | 8e3291f507757e40336600e09ead9d1123eefe1e (diff) | |
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.
Diffstat (limited to 'libjava/classpath/java/security')
0 files changed, 0 insertions, 0 deletions
