Landing: 089ef1ab2bee
Project / Subsystem
gcc / openmp
Date
2026-09-29
Author
Paul-Antoine Arras
Commit
089ef1ab2bee926df0d61cb8add44f45ec2e51e5
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- openmp
- patch_id
- —
- commit_hash
- 089ef1ab2bee926df0d61cb8add44f45ec2e51e5
- source_type
- github
- headline
- Fix ICE for map iterator with non-constant bound
- tldr
- An ICE (Internal Compiler Error) in OpenMP's iterator handling is fixed by unsetting OMP_CLAUSE_ITERATORS after a sorry diagnostic.
- author
- Paul-Antoine Arras
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • openmp
- • compiler
- • ICE
- • bugfix
- • parallelism
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-29T00:00:00.000Z
This commit addresses an Internal Compiler Error (ICE) that occurred in GCC’s OpenMP implementation when handling map iterators with non-constant bounds. Previously, even after a ‘sorry’ diagnostic was issued for such cases, internal compiler state (elems remaining NULL_TREE) would lead to a crash. The fix involves unsetting the OMP_CLAUSE_ITERATORS flag after the diagnostic is issued, preventing the subsequent segfault.