[patch, fortran, committed] Fix PR 92863, 'ICE in gfc_typename
Thomas Koenig
tkoenig@netcologne.de
Tue Dec 10 18:37:00 GMT 2019
Hello world,
I have just committed the attached patch as obvious and simple
as r279180.
The ICE for the test case occurred because a previous error
had left the derived field of the typespec NULL. Just returning
"invalid type" or "invalid class" in such a case is enough
to cure the ICE.
Regards
Thomas
2019-12-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/92863
* misc.c (gfc_typename): If derived component is NULL for
derived or class, return "invalid type" or "invalid class",
respectively.
2019-12-10 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/92863
* gfortran.dg/interface_45.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191210/f38f1466/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interface_45.f90
Type: text/x-fortran
Size: 281 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191210/f38f1466/attachment-0001.bin>
More information about the Fortran
mailing list