[Bug fortran/96495] [gfortran] MERGE does not copy ALLOCATABLE property of derived type

paul.luckner@rwth-aachen.de gcc-bugzilla@gcc.gnu.org
Tue Aug 11 13:53:02 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96495

paul.luckner@rwth-aachen.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49042|0                           |1
        is obsolete|                            |

--- Comment #2 from paul.luckner@rwth-aachen.de ---
Created attachment 49044
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49044&action=edit
proof of concept code -- version 3

The bug is not specific to binary/unary operators 
BUT RATHER 
the combination of an elemental operator where one argument is an array and the
other argument a scalar result of another operator.

The current code example (poc version 3) shows the bug using 

<array> = <array> .<binary elemental operator>. (.<unary operator>. <scalar>)
OR
<array> = <array> .<binary elemental operator>. (<scalar> .<binary operator>.
<scalar>)


More information about the Gcc-bugs mailing list