Landing: 8aa0c63fad5d

Project / Subsystem

gcc / fortran

Date

2026-06-04

Author

Paul Thomas

Commit

8aa0c63fad5dc4e432d002d8753e6e80484f3d36

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
8aa0c63fad5dc4e432d002d8753e6e80484f3d36
source_type
github
headline
Fortran avoids an ICE when submodule functions return pointers.
tldr
Fortran compiler no longer crashes (ICE) when a submodule function declares an implicit pointer result, improving error handling.
author
Paul Thomas
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • bugfix
  • compiler-internal
  • stability
discussion_id_link
bugzilla_pr
date
2026-06-04T00:00:00.000Z

This commit resolves an Internal Compiler Error (ICE) that occurred in the Fortran frontend when a submodule function implicitly declared a pointer as its result. Previously, such declarations would lead to an unclassifiable statement error and subsequent ICE or compiler confusion. The fix prevents the compiler from erroneously committing a new symbol for the implicit result when it’s already recognized as part of the module procedure.