Landing: 4d855f3af5b1
Project / Subsystem
gcc / fortran
Date
2026-07-26
Author
Thomas Koenig
Commit
4d855f3af5b18e539585d1d4832470e500323c12
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 4d855f3af5b18e539585d1d4832470e500323c12
- source_type
- github
- headline
- Fix size calculation for reallocation for matmul of rank 2 a and rank 1 b.
- tldr
- Corrects Fortran matmul LHS reallocation size calculation for specific rank combinations.
- author
- Thomas Koenig
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • matmul
- • reallocation
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-26T00:00:00.000Z
This commit fixes a bug in the Fortran front-end’s matmul operation that affected the size calculation for reallocating the left-hand side (LHS) expression when it is allocatable. The fix specifically addresses the case where a rank-2 array is multiplied by a rank-1 array, ensuring the LHS is resized correctly.