| 1 |
! { dg-do compile } |
| 2 |
|
| 3 |
program p |
| 4 |
integer, parameter :: a(0) = 0 |
| 5 |
character(0), parameter :: b(0) = '' |
| 6 |
a%kind = 1 ! { dg-error "Assignment to a constant expression" } |
| 7 |
b%len = 'a' ! { dg-error "Assignment to a constant expression" } |
| 8 |
end program |
| 9 |
|