Landing: 444b85117800

Project / Subsystem

gcc / fortran

Date

2026-09-15

Author

Mikael Morin

Commit

444b851178006081d42e272541f251a86a597306

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
—
commit_hash
444b851178006081d42e272541f251a86a597306
source_type
github
headline
Fortran: Scalar type extraction simplified
tldr
Fortran scalar type extraction logic moved to callers to simplify a function.
author
Mikael Morin
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • fortran
  • • refactor
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-09-15T00:00:00.000Z

The get_scalar_to_descriptor_type function in the Fortran front-end has been modified to accept the scalar’s type directly as an argument, rather than accessing it via TREE_TYPE(). This change shifts the responsibility of extracting the type to the calling functions (gfc_conv_scalar_to_descriptor, gfc_conv_derived_to_class, gfc_conv_class_to_class), simplifying the get_scalar_to_descriptor_type function itself and addressing PR122521.