| 1 |
! { dg-do compile } |
| 2 |
! PR 65248 - this used to ICE. Test case by Tobias Burnus. |
| 3 |
|
| 4 |
program main |
| 5 |
|
| 6 |
! C7110 (R770) If type-spec is omitted, each ac-value expression in the |
| 7 |
! array-constructor shall have the same declared type and kind type parameters |
| 8 |
|
| 9 |
! Should be fine as there is either no or only one ac-value: |
| 10 |
print *, [[integer ::],[real::]] |
| 11 |
print *, [[integer ::],[real::], [1], [real ::]] |
| 12 |
print *, [[integer ::],[real::], ["ABC"], [real ::]] // "ABC" |
| 13 |
print *, [integer :: [integer ::],[real::]] |
| 14 |
|
| 15 |
! OK - accepted |
| 16 |
print *, [integer :: [1],[1.0]] |
| 17 |
end |