diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/initialization_7.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/initialization_7.f90 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/initialization_7.f90 b/gcc/testsuite/gfortran.dg/initialization_7.f90 new file mode 100644 index 000000000..861518196 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/initialization_7.f90 @@ -0,0 +1,13 @@ +! { 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 "Deferred array" } + integer :: nix + + nix = nx +end subroutine |