gcc/testsuite/gfortran.dg/pr96085.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=legacy" } |
| 3 | ! PR fortran/96085 - ICE in gfc_finish_var_decl, at fortran/trans-decl.c:694 |
| 4 | |
| 5 | module m |
| 6 | integer, parameter :: a = 1 |
| 7 | contains |
| 8 | subroutine s |
| 9 | assign 2 to a ! { dg-error "requires a scalar default INTEGER variable" } |
| 10 | 2 print *, a |
| 11 | end |
| 12 | end |