Landing: 4f1c60804531
Project / Subsystem
gcc / fortran
Date
2026-08-12
Author
Paul Thomas
Commit
4f1c60804531475ad86206f3cc298da6ce001d83
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 4f1c60804531475ad86206f3cc298da6ce001d83
- source_type
- github
- headline
- Fix ICE with recursively defined derived type
- tldr
- Resolves an ICE in Fortran when handling allocatable arrays in recursively defined derived types.
- author
- Paul Thomas
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • ICE
- • type system
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-12T00:00:00.000Z
This commit fixes an Internal Compiler Error (ICE) in the Fortran frontend when dealing with recursively defined derived types that contain allocatable arrays. The fix extends a mechanism for handling allocatable arrays of the same type to scalars within these structures. It ensures that descriptors are created for these scalars and passed to the deep copy library, resolving the ICE and enabling compilation of such code. New test cases are added to cover this scenario.