re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / logical_assignment_1.f90
blobc22898051183e9d0701e309916a5d1a656711ca8
1 ! { dg-do compile }
2 ! PR 79312 - assigning a logical value to a real
3 ! is invalid.
4 ! Test case by John Harper.
5 program emptyarray5
6 implicit none
7 real a(0)
8 a = [logical::] ! { dg-error "Can't convert LOGICAL" }
9 print *,size(a)
10 end program emptyarray5