Landing: cd453025faf5
Project / Subsystem
gcc / c++
Date
2026-07-24
Author
Odysseas Georgoudis
Commit
cd453025faf5ab3ada2428e5fc372d9a6328c9cb
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- cd453025faf5ab3ada2428e5fc372d9a6328c9cb
- source_type
- github
- headline
- c++: Fix ICE with loop pragmas at class scope [PR126323]
- tldr
- Prevents C++ compiler ICE by rejecting loop pragmas at class scope.
- author
- Odysseas Georgoudis
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • compiler-error
- • pragma
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-24T00:00:00.000Z
This commit resolves an internal compiler error (ICE) in the C++ front-end that occurred when GCC loop pragmas were incorrectly processed at class scope. The parser previously rejected these pragmas only at namespace scope, leading to an attempt to parse a loop as a statement within a member declaration context. The fix ensures that loop pragmas are now only accepted in statement contexts, preventing the ICE.