re PR fortran/82257 (f951: Internal compiler error segmentation fault)
authorLouis Krupp <louis.krupp@zoho.com>
Tue, 16 Jan 2018 01:09:11 +0000 (01:09 +0000)
committerLouis Krupp <lkrupp@gcc.gnu.org>
Tue, 16 Jan 2018 01:09:11 +0000 (01:09 +0000)
commit75a3c61ae44b7820baf7946c3ddf3632adedcccf
treebc36aeb6e8b943718802996c56770e959baf1a07
parentc662b64cf93dbb8b0ef52acc9cc241afb2d6f221
re PR fortran/82257 (f951: Internal compiler error segmentation fault)

2018-01-15  Louis Krupp  <louis.krupp@zoho.com>

PR fortran/82257
* interface.c (compare_rank): Don't try to retrieve CLASS_DATA
from symbol marked unlimited polymorphic.
* resolve.c (resolve_structure_cons): Likewise.
* misc.c (gfc_typename): Don't dereference derived->components
if it's NULL.

2018-01-15  Louis Krupp  <louis.krupp@zoho.com>

PR fortran/82257
* gfortran.dg/unlimited_polymorphic_28.f90: New test.

From-SVN: r256720
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/fortran/misc.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/unlimited_polymorphic_28.f90 [new file with mode: 0644]