gcc/testsuite/gfortran.dg/pr107423.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=f95" } |
| 3 | ! PR fortran/107423 - ICE in parse_spec |
| 4 | ! Contributed by G.Steinmetz |
| 5 | |
| 6 | program p |
| 7 | type t(k) |
| 8 | integer, kind :: k ! { dg-error "Fortran 2003" } |
| 9 | integer :: a |
| 10 | end type |
| 11 | contains |
| 12 | function f() |
| 13 | type(t(4)), allocatable :: x ! { dg-error "Invalid character" } |
| 14 | allocate (t(4) :: x) ! { dg-error "cannot be used" } |
| 15 | end ! { dg-error "END" } |
| 16 | end ! { dg-error "END" } |
| 17 | |
| 18 | ! { dg-prune-output "Unexpected end of file" } |