Fix ICE and improve errors for invalid anonymous structure declarations.
authorFritz O. Reese <fritzoreese@gmail.com>
Thu, 10 Nov 2016 21:57:13 +0000 (21:57 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Thu, 10 Nov 2016 21:57:13 +0000 (21:57 +0000)
commit94903212646d0b90a92afc0ca47a348ab92719c1
tree14856b9dbfce8af631a0a5aa61b9970b2bca3a07
parent05b8fcb4d2087c1544ebe3ad128711f12bcff022
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.

From-SVN: r242058
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_structure_17.f90 [new file with mode: 0644]