As Fortran 2018 9.7.1.2(7), the value of each element of allocate object
becomes the value of source when the allocate object is array and the
source is scalar.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The running tests are in https://github.com/llvm/llvm-project/issues/60090#issuecomment-1397092468.
Comment Actions
Thanks for implementing this and, especially, for adding the comments.
Can you please add a test to .../llvm-project/flang/unittests/Runtime?
Comment Actions
Sorry for the late reply due to the Chinese Lunar New Year.
Add the unittests as @PeteSteinfeld mentioned.
Comment Actions
Thanks @PeteSteinfeld .
Will wait for one more day before landing in case other reviewers have comments.