Landing: 5b0a952ca720
Project / Subsystem
gcc / c++
Date
2026-09-23
Author
Jakub Jelinek
Commit
5b0a952ca720ba661baa20cd72becfeb9532633f
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 5b0a952ca720ba661baa20cd72becfeb9532633f
- source_type
- github
- headline
- C++: Improve error recovery for __builtin_is_within_lifetime
- tldr
- Fixes an ICE during error recovery for __builtin_is_within_lifetime when encountering error_mark_node.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • compiler
- • bugfix
- • memory safety
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-23T00:00:00.000Z
This commit resolves an Internal Compiler Error (ICE) that occurred during error recovery for the __builtin_is_within_lifetime intrinsic in C++. The issue arose when error_mark_node appeared unexpectedly within constructors, causing assertions to fail. The fix simplifies error recovery by returning error_mark_node directly in such cases.