When an optional intrinsic scalar is passed to a function expecting an
unlimited polymorphic dummy argument, the presence test must be done
before the emboxing otherwise it will result in a program crash.
Depends on D143888
Paths
| Differential D143889
[flang] Handle correctly optional intrinsic scalar to unlimited polymorphic optional ClosedPublic Authored by clementval on Feb 13 2023, 1:37 AM.
Details Summary When an optional intrinsic scalar is passed to a function expecting an Depends on D143888
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 13 2023, 1:37 AM This revision is now accepted and ready to land.Feb 13 2023, 2:26 AM Comment Actions Aside from the nit in the comment, all builds and tests correctly and looks good.
Closed by commit rGd904ee3d479a: [flang] Handle correctly optional intrinsic scalar to unlimited polymorphic… (authored by clementval). · Explain WhyFeb 13 2023, 6:44 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 496962 flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/polymorphic.f90
|
"opional" should be "optional".