Landing: ea991f752fc2
Project / Subsystem
gcc / gcc/fortran
Date
2026-07-21
Author
Thomas Koenig
Commit
ea991f752fc2a65a887c64190d8cad415edac8c9
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/fortran
- patch_id
- —
- commit_hash
- ea991f752fc2a65a887c64190d8cad415edac8c9
- source_type
- github
- headline
- Fix false positive warnings for unused/undefined variables in Fortran
- tldr
- Fortran compiler now correctly handles charlen in ALLOCATE, SELECT CASE expressions, and host-associated variables for warnings.
- author
- Thomas Koenig
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • warnings
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-21T00:00:00.000Z
The Fortran compiler has been updated to fix several instances where it incorrectly issued warnings for unused or undefined variables. Specifically, it now correctly marks the charlen of an ALLOCATE statement as used, ensures the expression in a SELECT CASE statement is recognized as used, and will not issue warnings for host-associated variables that are not declared private. These changes improve the accuracy of developer warnings.