You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flangFlang issues not falling into any other categoryquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Version of flang : 21.0.0(842e5915778a820c63cf38b75bec932a6ea8c18b)/AArch64
When reshape intrinsic function is specified as the argument of function (ch and s), the function result is incorrect.
The above program is Polymorphism_22.f90.
Once the result of reshape intrinsic function is assigned to a variable, and that variable is specified as an argument to function (ch and s), the execution result is correct.
Fortran 2023 15.5.2.5 paragraph 11: "If the dummy argument has the TARGET attribute and the effective argument does not have the TARGET attribute or is an array section with a vector subscript, any pointers associated with the dummy argument
become undefined when execution of the procedure completes."
EugeneZelenko
added
the
question
A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
label
May 7, 2025
flangFlang issues not falling into any other categoryquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
When
reshape intrinsic function
is specified as the argument offunction (ch and s)
, the function result is incorrect.The above program is Polymorphism_22.f90.
Once the result of
reshape intrinsic function
is assigned to a variable, and that variable is specified as an argument tofunction (ch and s)
, the execution result is correct.The above program is Polymorphism_4.f90.
The following are the test program, Flang, Gfortran and ifx compilation/execution result.
Polymorphism_22.f90:
Polymorphism_4.f90:
The text was updated successfully, but these errors were encountered: