The runtime check was a too strong as the standard says.
If it is polymorphic it shall not be an undefined pointer.
The check was checking if the pointer was associated.
Remove the check as other compilers do.
Depends on D144643
Paths
| Differential D144644
[flang] Relax the check for polymorphic pointer in storage_size intrinsic ClosedPublic Authored by clementval on Feb 23 2023, 7:15 AM.
Details Summary The runtime check was a too strong as the standard says.
The check was checking if the pointer was associated. Depends on D144643
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 23 2023, 7:15 AM This revision is now accepted and ready to land.Feb 23 2023, 7:58 AM Closed by commit rGe77fc0dd76ab: [flang] Relax the check for polymorphic pointer in storage_size intrinsic (authored by clementval). · Explain WhyFeb 23 2023, 8:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 499847 flang/lib/Optimizer/Builder/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/storage_size.f90
|