diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gfortran.dg/bounds_check_16.f90')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gfortran.dg/bounds_check_16.f90 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gfortran.dg/bounds_check_16.f90 b/gcc-4.8/gcc/testsuite/gfortran.dg/bounds_check_16.f90 new file mode 100644 index 000000000..38a86306e --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gfortran.dg/bounds_check_16.f90 @@ -0,0 +1,14 @@ +! { dg-do compile } +! { dg-options "-fcheck=bounds" } +! +! PR fortran/50815 +! +! Don't check the bounds of deferred-length strings. +! gfortran had an ICE before because it did. +! +SUBROUTINE TEST(VALUE) + IMPLICIT NONE + CHARACTER(LEN=:), ALLOCATABLE :: VALUE + CHARACTER(LEN=128) :: VAL + VALUE = VAL +END SUBROUTINE TEST |