]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/decl.c
Fix ICE and improve errors for invalid anonymous structure declarations.
authorforeese <foreese@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Nov 2016 21:57:13 +0000 (21:57 +0000)
committerforeese <foreese@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Nov 2016 21:57:13 +0000 (21:57 +0000)
commitc717a68857398f6003b1d100a2248f127f204b52
tree14856b9dbfce8af631a0a5aa61b9970b2bca3a07
parentac1739da2f62064ef7cd6ed8000a5bd64030b43e
Fix ICE and improve errors for invalid anonymous structure declarations.

PR fortran/78277
* gcc/fortran/decl.c (gfc_match_data_decl): Gracefully handle bad
anonymous structure declarations.

PR fortran/78277
* gcc/testsuite/gfortran.dg/dec_structure_17.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242058 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_structure_17.f90 [new file with mode: 0644]