gcc/testsuite/gfortran.dg/char_array_constructor_2.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! Tests the fix for PR30319, in which the use of the parameter 'aa' in |
| 3 | ! the array constructor that initialises bb would cause an internal |
| 4 | ! error in resolution. |
| 5 | ! |
| 6 | ! Contributed by Vivek Rao <[email protected]> |
| 7 | ! |
| 8 | module foomod |
| 9 | character (len=1), parameter :: aa = "z", bb(1) = (/aa/) |
| 10 | end module foomod |
| 11 | use foomod |
| 12 | print *, aa, bb |
| 13 | end |