re PR fortran/78240 (ICE in match_clist_expr, at fortran/decl.c:728)
authorFritz Reese <fritzoreese@gmail.com>
Tue, 14 Nov 2017 01:25:26 +0000 (01:25 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Tue, 14 Nov 2017 01:25:26 +0000 (01:25 +0000)
commit9b24c104aeb9dcaa06c0fe1324b8d9ef1fc2d92a
tree53863fbd54133dd5150bccbeab8db5263c8a0a0c
parent728649ebf00526e69d14c334affbf4b162c0f154
re PR fortran/78240 (ICE in match_clist_expr, at fortran/decl.c:728)

2017-11-13  Fritz Reese <fritzoreese@gmail.com>

    PR fortran/78240

    gcc/fortran/ChangeLog:

PR fortran/78240
* decl.c (match_clist_expr): Replace gcc_assert with proper
handling of bad result from spec_size().
* resolve.c (check_data_variable): Avoid NULL dereference when passing
locus to gfc_error.

    gcc/testsuite/ChangeLog:

PR fortran/78240
* gfortran.dg/dec_structure_23.f90: New.
* gfortran.dg/pr78240.f90: New.

From-SVN: r254718
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_structure_23.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr78240.f90 [new file with mode: 0644]