https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84219
Paul Thomas <pault at gcc dot gnu.org> 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 gnu.org> ---
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)
end
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.
Paul