The implied-do index value has 'index' type, and it has to be
converted to the original ac-do-variable's data type.
Depends on D150149
Paths
| Differential D150150
[flang] Added missing type cast for the implied-do index. ClosedPublic Authored by vzakhari on May 8 2023, 3:42 PM.
Details Summary The implied-do index value has 'index' type, and it has to be Depends on D150149
Diff Detail
Event TimelineComment Actions Looks great, and thanks for moving the fix of the other problem up in the chain in D150149! This revision is now accepted and ready to land.May 9 2023, 12:45 AM Closed by commit rG9a7b363eeb86: [flang] Added missing type cast for the implied-do index. (authored by vzakhari). · Explain WhyMay 9 2023, 1:26 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 520806 flang/lib/Lower/ConvertExpr.cpp
flang/lib/Lower/ConvertExprToHLFIR.cpp
flang/test/Lower/HLFIR/array-ctor-as-elemental.f90
flang/test/Lower/HLFIR/array-ctor-as-inlined-temp.f90
flang/test/Lower/HLFIR/array-ctor-as-runtime-temp.f90
flang/test/Lower/HLFIR/array-ctor-index.f90
flang/test/Lower/array-constructor-index.f90
|