Landing: 1124bb120dea
Project / Subsystem
gcc / c++
Date
2026-05-27
Author
Jakub Jelinek
Commit
1124bb120dea57071537465033b38da914fc16da
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 1124bb120dea57071537465033b38da914fc16da
- source_type
- github
- headline
- c++: Avoid ICE when evaluating constants of error type.
- tldr
- Fixes an internal compiler error (ICE) in C++ code when evaluating a constant expression of error_mark_node type during error recovery.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • ice
- • error recovery
- • templates
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-27T00:00:00.000Z
The compiler would ICE when evaluating constant expressions that had a type of error_mark_node during error recovery. This commit avoids this issue by checking for the error_mark_node type in process_metafunction and returning NULL_TREE if found, preventing the ICE. This bug was triggered during template metafunction evaluation.