gcc/testsuite/gfortran.dg/pr57553.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! PR fortran/57553 - bad error message for invalid use of STORAGE_SIZE |
| 4 | ! |
| 5 | ! Testcase contributed by Tobias Burnus |
| 6 | |
| 7 | subroutine S (A) |
| 8 | character(len=*), intent(in) :: A |
| 9 | integer, parameter :: ESize = (storage_size(a) + 7) / 8 ! { dg-error "does not reduce to a constant" } |
| 10 | end |