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

--- Comment #5 from Damian Rouson <damian at archaeologic dot codes> ---
Paul, here's the latest reproducer with the patched build from Jerry:

$ cat reproducer.f90 
  implicit none
  type tensor_t
    real, allocatable :: values_
  end type
  type(tensor_t) random_inputs(1)
  type(tensor_t), allocatable :: outputs(:)
  allocate(outputs, mold=random_inputs)
end 

$ gfortran reproducer.f90 
reproducer.f90:7:12:

    7 |   allocate(outputs, mold=random_inputs)
      |            1~~~~~~
Error: Array specification or array-valued SOURCE= expression required in
ALLOCATE statement at (1)

$ gfortran --version
GNU Fortran (GCC) 16.0.0 20251111 (experimental)

Reply via email to