Landing: 9ca72f5f8e94

Project / Subsystem

gcc / fortran

Date

2026-07-20

Author

Mikael Morin

Commit

9ca72f5f8e94218eca77198156e157919dc000eb

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
9ca72f5f8e94218eca77198156e157919dc000eb
source_type
github
headline
fortran: Add accessors for the dtype field
tldr
Fortran array descriptors now use dedicated accessors for the dtype field, replacing direct access.
author
Mikael Morin
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • compiler
  • refactor
discussion_id_link
bugzilla_pr
date
2026-07-20T00:00:00.000Z

This commit introduces dedicated getter and setter functions (gfc_conv_descriptor_dtype_get and gfc_conv_descriptor_dtype_set) for the dtype field of Fortran array descriptors. Direct public access to this field is removed, enforcing encapsulation and ensuring consistent modification through the new accessor functions. This change also updates numerous call sites across the Fortran frontend.