We were failing tests where an ALLOCATE statement that allocated an
array had a non-character scalar MOLD argument.
I fixed this be merging the code for ALLOCATE statements with MOLD
and SOURCE arguments.
Paths
| Differential D145418
[Flang] Fix ALLOCATE with MOLD where MOLD is a scalar ClosedPublic Authored by PeteSteinfeld on Mar 6 2023, 1:24 PM.
Details Summary We were failing tests where an ALLOCATE statement that allocated an I fixed this be merging the code for ALLOCATE statements with MOLD
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 6 2023, 1:24 PM
This revision is now accepted and ready to land.Mar 9 2023, 1:33 AM Closed by commit rG34ed7db9e1f6: [Flang] Fix ALLOCATE with MOLD where MOLD is a scalar (authored by PeteSteinfeld). · Explain WhyMar 9 2023, 6:08 AM This revision was automatically updated to reflect the committed changes. PeteSteinfeld marked 2 inline comments as done.
Revision Contents
Diff 503475 flang/lib/Lower/Allocatable.cpp
flang/test/Lower/allocate-mold.f90
|
I do not think you should reverse this. Even if unused by this test, this is still broken code. You could probably still expose the issue with a mold allocation to a character scalar allocatable.