Landing: a03222414043
Project / Subsystem
gcc / fortran
Date
2026-08-16
Author
Christopher Albert
Commit
a03222414043b7155a76f7e564fb688ac5ac7bb6
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- a03222414043b7155a76f7e564fb688ac5ac7bb6
- source_type
- github
- headline
- Fortran: Fix duplicated finalization for derived-type assignments
- tldr
- Corrects a bug causing duplicated finalization in derived-type assignments with component assignments.
- author
- Christopher Albert
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • compiler bug
- • assignment
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-16T00:00:00.000Z
A regression in Fortran (versions 13-17) caused duplicated finalization during intrinsic derived-type assignments that involved component assignments. This fix ensures that only one finalization occurs for the LHS, and subsequent component assignments correctly operate on the finalized value, preventing issues with temporary copies and stale data.