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