Landing: c45c5ee3f5c5
Project / Subsystem
gcc / fortran
Date
2026-07-14
Author
Thomas Koenig
Commit
c45c5ee3f5c51c00153173f7416946c05ce1b172
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- c45c5ee3f5c51c00153173f7416946c05ce1b172
- source_type
- github
- headline
- Fortran: Fix issues with unused/undefined variable warnings
- tldr
- Improves Fortran's unused and undefined variable warnings for allocatable arguments and intrinsic procedures.
- author
- Thomas Koenig
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • compiler
- • warning
- • bugfix
- discussion_id_link
- github:gcc-mirror/gcc#126058
- bugzilla_pr
- —
- date
- 2026-07-14T00:00:00.000Z
This commit addresses a bug in the Fortran compiler where -Wunused-but-set and -Wundefined-vars warnings were not correctly issued for allocatable arguments and intrinsic procedures. It corrects how allocated status is tracked for arguments with various intents and ensures that warnings are issued in a more logical order when both -Wall and -Wextra are used. New test cases are included to cover these fixes.