re PR fortran/78593 (ICE in gfc_match_varspec, at fortran/primary.c:2053)
authorJanus Weil <janus@gcc.gnu.org>
Wed, 30 Nov 2016 13:23:17 +0000 (14:23 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 30 Nov 2016 13:23:17 +0000 (14:23 +0100)
commitd5c50b024fbfe4255270fa4c7845b222466d2e79
tree4cc5b48fcde522d26fe076393441cdeacef4da6a
parent4b498f721ef25cb4cd43b4349271987cb25ae357
re PR fortran/78593 (ICE in gfc_match_varspec, at fortran/primary.c:2053)

2016-11-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/78593
* primary.c (gfc_match_varspec): Check if sym is non-null to avoid ICE.

2016-11-30  Janus Weil  <janus@gcc.gnu.org>

PR fortran/78593
* gfortran.dg/derived_result.f90: New test case.

From-SVN: r243020
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/derived_result.f90 [new file with mode: 0644]