From: Dominique d'Humieres Date: Sun, 24 Jan 2016 13:13:38 +0000 (+0100) Subject: re PR fortran/68283 (ice: gfc_variable_attr(): Bad array reference) X-Git-Tag: basepoints/gcc-7~1363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9fe2963a9ef03565151edb49080b730d11aa8d6;p=thirdparty%2Fgcc.git re PR fortran/68283 (ice: gfc_variable_attr(): Bad array reference) 2016-01-24 Dominique d'Humieres PR fortran/68283 gfortran.dg/pr68283.f90: New test. From-SVN: r232776 --- diff --git a/gcc/testsuite/gfortran.dg/pr68283.f90 b/gcc/testsuite/gfortran.dg/pr68283.f90 new file mode 100644 index 000000000000..81f74129fe93 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr68283.f90 @@ -0,0 +1,15 @@ +! { dg-do compile } +MODULE neb_utils + IMPLICIT NONE + INTEGER, PARAMETER :: dp=8 + TYPE neb_var_type + REAL(KIND=dp), DIMENSION(:, :), POINTER :: xyz, int, wrk + END TYPE neb_var_type +CONTAINS + SUBROUTINE get_neb_force() + INTEGER :: i + TYPE(neb_var_type), POINTER :: forces + REAL(KIND=dp), ALLOCATABLE, DIMENSION(:) :: dtmp1, wrk + dtmp1 = forces%wrk(:,i)-dot_product_band ! { dg-error "Symbol 'dot_product_band' at .1. has no IMPLICIT type" } + END SUBROUTINE get_neb_force +END MODULE neb_utils