view gcc/testsuite/gfortran.dg/initialization_7.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
line wrap: on
line source

! { dg-do compile }
!
! PR fortran/31253 -- ICE on invlid initialization expression
! Contributed by: Mikael Morin <mikael DOT morin AT tele2 DOT fr>
!

subroutine probleme(p)
  real(kind=8), dimension(:) :: p
  integer :: nx = size(p, 1)          ! { dg-error "Assumed-shape array" }
  integer :: nix

  nix = nx
end subroutine