https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102114
Bug ID: 102114 Summary: label on END statement not recognized after CONTAINS Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: wvermin at gmail dot com Target Milestone: --- This program produces an error: program p goto 10 contains subroutine s end subroutine s 10 end program 2 | goto 10 | 1 Error: Label 10 referenced at (1) is never defined This program compiles ok: program p goto 10 10 end program