[Bug fortran/94578] Incorrect assignment of RESHAPE() result to a Fortran pointer

2020-04-27 Thread howisjw at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94578 --- Comment #11 from Jan-Willem Blokland --- If you make use of an temporary variable, it sounds like you will do an additional memory copy. Therefore, I am wondering what the performance impact will be. Naively, I would think the span solution w

[Bug fortran/94578] Incorrect assignment of RESHAPE() result to a Fortran pointer

2020-04-17 Thread howisjw at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94578 --- Comment #7 from Jan-Willem Blokland --- Thanks for verifying my case. Your test makes me wonder which intrinsics are effected in this and other versions of gfortran. Furthermore, I assume it also happens when you pass the pointer to subroutin

[Bug fortran/94578] Incorrect assignment of RESHAPE() result to a Fortran pointer

2020-04-13 Thread howisjw at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94578 --- Comment #2 from Jan-Willem Blokland --- Created attachment 48259 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48259&action=edit Program bug_reshape

[Bug fortran/94578] Incorrect assignment of RESHAPE() result to a Fortran pointer

2020-04-13 Thread howisjw at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94578 --- Comment #1 from Jan-Willem Blokland --- Below are the results of the test program. The results of array1d should have been identical to array2d. --- array2d --- 1 1 0.100E+01 0.100E+01 0.100E+01 0.100E+00 0.100

[Bug fortran/94578] New: Incorrect assignment of RESHAPE() result to a Fortran pointer

2020-04-13 Thread howisjw at hotmail dot com
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: howisjw at hotmail dot com Target Milestone: --- The other day, I tried to compile a large Fortran code using gcc 8.3.0. In the code the reshape function is used and the resulting is