Paul Thomas <pault at gcc dot> changed:

           What    |Removed                     |Added
            Summary|[8 Regression] ICE: Invalid |Failure to generate error
                   |expression in               |for IO of transfer
                   |gfc_target_interpret_expr   |intrinsic, when MOLD has
                   |                            |derived type components.

--- Comment #5 from Paul Thomas <pault at gcc dot> ---
This version of the testcase (which I inadvertently committed the first time):
program p
   type t
      integer, allocatable :: t
   end type
   type(t) :: x
   integer :: foo = -1
   print *, transfer(foo, x)

generates no error and outputs -1 for gfortran going back to at least 6.4.1.

This is manifestly wrong and the error should be generated.

I am changing the summary accordingly.


Reply via email to