Landing: 6e1679ebd5e6

Project / Subsystem

gcc / fortran

Date

2026-05-23

Author

Paul Thomas

Commit

6e1679ebd5e62dd63ee6c93df2514e0c08a2b674

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
6e1679ebd5e62dd63ee6c93df2514e0c08a2b674
source_type
github
headline
Fortran: Fix scalar class to derived select type entities
tldr
Fixed an issue in Fortran's handling of scalar class to derived type assignment in select type constructs.
author
Paul Thomas
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • bugfix
  • polymorphism
  • derived types
discussion_id_link
bugzilla_pr
date
2026-05-23T00:00:00.000Z

A bug was fixed in the Fortran compiler related to assignment expressions within select type constructs. The compiler was not correctly passing scalar class information to derived type assignment expressions, leading to incorrect code generation. This has now been corrected by ensuring that gfc_trans_scalar_assign receives the appropriate scalar class information. A new test case was added to verify the fix.