fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / finalize_9.f90
bloba113026ed7657e3e0681fc229e89da25430f5139
1 ! { dg-do compile }
3 ! PR 43244: Invalid statement misinterpreted as FINAL declaration
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 implicit none
8 type particle
9 integer :: ID
10 end type
11 type(particle), dimension(1,1:3) :: finalState
12 finalstate(1,(/1:2/))%ID = (/1,103/) ! { dg-error "Syntax error in array constructor" }
13 end