https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77584
--- Comment #1 from Fritz Reese <fritzoreese at gmail dot com> --- Created attachment 39618 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39618&action=edit Patch for PR 77584 The attached patch fixes the issue. 2016-09-14 Fritz Reese <fritzore...@gmail.com> PR fortran/77584 * gcc/fortran/decl.c (match_record_decl, gfc_match_decl_type_spec): Fixes to handling of structure/record from declaration-type-spec. * gcc/testsuite/gfortran.dg/dec_structure_15.f90: New testcase.