Landing: 3872da84760f

Project / Subsystem

gcc / fortran

Date

2026-06-07

Author

Paul Thomas

Commit

3872da84760f827365fc0f8d1fdc45ca25810f89

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
3872da84760f827365fc0f8d1fdc45ca25810f89
source_type
github
headline
Fortran requires MODULE prefix for separate module procedures
tldr
The Fortran compiler now correctly enforces the `MODULE` prefix for separate module procedures, preventing incorrect linking and improving diagnostic messages.
author
Paul Thomas
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • compiler-bug
  • language-compliance
discussion_id_link
bugzilla_pr
date
2026-06-07T00:00:00.000Z

The Fortran compiler was incorrectly suppressing a diagnostic for missing MODULE prefixes on separate module procedures when they were made accessible through host association in submodules. This allowed incorrectly linked code to compile. The compiler now uses the module_procedure attribute, which is not cleared during host association, to guard the diagnostic. This restores the intended error message and provides a clearer explanation of the requirement, ensuring correct handling of separate module procedures.