[Patch, Fortran] PR 58355: [4.7/4.8/4.9 Regression] [F03] ICE with TYPE, EXTENDS before parent TYPE defined

Janus Weil janus@gcc.gnu.org
Sat Sep 21 14:31:00 GMT 2013


Hi all,

the straightforward patch in the attachment does two things:

1) It prevents a segfault, which is a regression on 4.7/4.8/trunk (by
simply switching the order of two statements).
2) It modifies an error message, which was not perfectly correct in my opinion.

The patch was regtested successfully on x86_64-unknown-linux-gnu. Ok for trunk?

Part #1, as a regression fix, should also be backported to 4.7 and 4.8. Ok?

Cheers,
Janus



2013-09-21  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/58355
    * decl.c (check_extended_derived_type): Prevent segfault, modify error
    message.

2013-09-21  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/58355
    * gfortran.dg/extends_15.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr58355.diff
Type: application/octet-stream
Size: 851 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130921/17c842e8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: extends_15.f90
Type: application/octet-stream
Size: 344 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130921/17c842e8/attachment-0001.obj>


More information about the Fortran mailing list