Unallocated unlimited polymorphic entities do not have a dynamic type set
and do not have declared type. The standard notes that the result is
processor dependent when one of the arguments of same_type_as is in this
case. Align the result to other compiler (gfortran, nvfortran).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/runtime/derived-api.cpp | ||
---|---|---|
97–103 | Wouldn't this be hit if both A and B are allocated but A or B is an unlimited polymorphic allocated to an intrinsic type? (I do not see where the "unallocated" aspect is tested). |
Comment Actions
All builds and tests correctly and looks good.
flang/runtime/derived-api.cpp | ||
---|---|---|
97 | "the descriptor" should be "read descriptors". |
flang/runtime/derived-api.cpp | ||
---|---|---|
97–103 | Yes. I'll add a check at the beginning for non derived type descriptor. |
"the descriptor" should be "read descriptors".