Landing: ad78f61449bc

Project / Subsystem

gcc / fortran

Date

2026-08-13

Author

Paul Thomas

Commit

ad78f61449bc9ef1d585e69ff48c46574f9a9382

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
—
commit_hash
ad78f61449bc9ef1d585e69ff48c46574f9a9382
source_type
github
headline
Fortran: Fix data corruption with allocation from ctr source
tldr
Corrects data corruption in Fortran derived type assignments involving allocatable components.
author
Paul Thomas
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • fortran
  • • data corruption
  • • assignment
discussion_id_link
—
bugzilla_pr
—
date
2026-08-13T00:00:00.000Z

This commit addresses data corruption issues in the Fortran compiler (gfortran) that occurred when assigning derived type expressions to class components or derived type components. It ensures that allocatable components are properly copied during such assignments. Additionally, it handles the case of assigning a class expression to a scalar class component by correctly allocating the component and using vptr copy, thus preventing data corruption.