Landing: 2fef81e96ea3

Project / Subsystem

gcc / fortran

Date

2026-07-04

Author

Thomas Koenig

Commit

2fef81e96ea3035c6a99dd22c64f610bde40d42c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
2fef81e96ea3035c6a99dd22c64f610bde40d42c
source_type
github
headline
Fix two issues with unused/unset variable warnings.
tldr
Improves variable warning diagnostics in GFortran, fixing an ICE and clarifying warnings for namelist I/O and STOP statements.
author
Thomas Koenig
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • gfortran
  • warning
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-07-04T00:00:00.000Z

This commit resolves two issues in GFortran concerning variable warnings. It fixes an internal compiler error (ICE) related to namelist I/O by ensuring that variables used in namelists are correctly marked as accessed and by adding a nml_where field to track their location. Additionally, it improves diagnostics for STOP and ERROR STOP statements, preventing incorrect warnings about unused variables by marking their associated expressions as used.