https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84394
--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Sun Mar 17 12:45:33 2019 New Revision: 269740 URL: https://gcc.gnu.org/viewcvs?rev=269740&root=gcc&view=rev Log: 2019-03-17 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/84394 Backport from trunk * symbol.c (gfc_add_subroutine): If we are encountering a subrtoutine within a BLOCK DATA and the name starts with an underscore, do not check. 2019-03-17 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/84394 Backport from trunk * gfortran.dg/blockdata_11.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/blockdata_11.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/symbol.c branches/gcc-8-branch/gcc/testsuite/ChangeLog