| 1 |
! PR 30319 - Bogus warning from -Warray-bounds during string assignment |
| 2 |
! { dg-do compile } |
| 3 |
! { dg-options "-O2 -Warray-bounds" } |
| 4 |
|
| 5 |
program test_bounds |
| 6 |
|
| 7 |
character(256) :: foo |
| 8 |
|
| 9 |
foo = '1234' ! { dg-bogus "\\\[-Warray-bounds" } |
| 10 |
|
| 11 |
print *, foo |
| 12 |
|
| 13 |
end program test_bounds |