blob: 18d3193e2f0db599a29126c7dee61d9887b4a606 [file] [log] [blame]
! { dg-do compile }
! { dg-options "-fdec-structure" }
!
! PR fortran/78277
!
! Fix ICE for invalid structure declaration code.
!
subroutine sub1()
structure /s/
structure t
integer i
end structure
end structure
record /s/ u
interface
subroutine sub0(u)
structure /s/
structure t. ! { dg-error "Syntax error in anonymous structure decl" }
integer i
end structure
end structure
record /s/ u
end
end interface
call sub0(u)
end