gcc/testsuite/gfortran.dg/pr79524.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-set-target-env-var MALLOC_PERTURB_ "165" } |
| 3 | ! PR fortran/79524 |
| 4 | ! Reject parameter arrays with variable-length CHARACTER elements without |
| 5 | ! leaving the temporary charlen from the failed declaration on cl_list. |
| 6 | program p |
| 7 | character(*), parameter :: z(2) = [character(n) :: 'x', 'y'] ! { dg-error "Cannot initialize parameter array" } |
| 8 | character(*), parameter :: w(2) = [character(n+1) :: 'a', 'b'] ! { dg-error "Cannot initialize parameter array" } |
| 9 | end |