blob: 82b1cdec0f63cda28842e14ef2c5aa35e9d714ca [file] [log] [blame]
! { dg-do compile }
! { dg-options "-std=legacy" }
! PR fortran/96085 - ICE in gfc_finish_var_decl, at fortran/trans-decl.c:694
module m
integer, parameter :: a = 1
contains
subroutine s
assign 2 to a ! { dg-error "requires a scalar default INTEGER variable" }
2 print *, a
end
end