aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr103258.f90
blob: 4a3bb6fc2e7ecc635ca55646c9e3eda13870f018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
! { dg-additional-options "-Wno-pedantic" }
!
! Test from PR103258.  This used to ICE due to incorrectly marking the
! no-implicit-type error for n and m in the character length expression
! as already diagnosed during early resolution, when in fact errors are
! ignored in that parsing context.  We now expect the errors to be diagnosed
! at the point of the first use of each symbol.

subroutine s(n) ! { dg-error "Symbol 'n' .*has no IMPLICIT type" }
implicit none
character(n+m) :: c ! { dg-error "Symbol 'm' .*has no IMPLICIT type" }
entry e(m)
end