This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, fortran] PR29641 [4.1/4.2/4.3 regression] ICE in gfc_get_derived_type


:ADDPATCH fortran:

Jakub Jelinek posted this rather embarrassing PR - in spite of all the
testing a month ago, the rather simple testcase, attached, causes an
ICE because the derived type does not have a proc_name.  The fix is
utterly trivial - bail out with a NULL namespace if there is no parent
to search.  The testcase is the reporters, with the addition of a main
programme. Whilst the test is dg-do compile, the programme does run to
test functionality, if needed.

Regtested on Cygwin_NT/PIV - I intend to commit this tomorrow morning
under the obvious rule unless I receive any objections.  I will have
to follow it in a few days with commits to 4.2 and 4.1, since I
temporarily do not have anything other than trunk.  The same goes for
a couple of okayed patches that I will commit tomorrow.

Best regards

Paul

2006-10-31 Paul Thomas <pault@gcc.gnu.org>

PR fortran/29641
* trans-types.c (gfc_get_derived_type): If the derived type
namespace has neither a parent nor a proc_name, set NULL for
the search namespace.

2006-10-31 Paul Thomas <pault@gcc.gnu.org>

PR fortran/29641
* gfortran.dg/used_types_11.f90: New test.

Attachment: pr29641.diff
Description: Text document

Attachment: Change.logs
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]