Landing: 2946b3a77880
Project / Subsystem
gcc / openmp
Date
2026-05-29
Author
Tobias Burnus
Commit
2946b3a77880a9f0ba108e76d34a4b656bb4b1ca
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- openmp
- patch_id
- —
- commit_hash
- 2946b3a77880a9f0ba108e76d34a4b656bb4b1ca
- source_type
- github
- headline
- OpenMP: Disallow omp_mem_alloc for static variables in ALLOCATE directive.
- tldr
- The OpenMP ALLOCATE directive can no longer be used with omp_mem_alloc allocators for static variables, aligning with OpenMP 6.1.
- author
- Tobias Burnus
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • openmp
- • fortran
- • c
- • memory allocation
- • standards
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-29T00:00:00.000Z
The OpenMP specification is evolving to disallow the use of omp_{cgroup,pteam,thread}_mem_alloc allocators for static variables in the ALLOCATE directive. This commit enforces this restriction in GCC for both Fortran and C, rejecting such usage during compilation. This change aligns GCC’s behavior with the upcoming OpenMP 6.1 specification and the existing restrictions in OpenMP 6.0.