[Patch, Fortran] PR 55983: [4.7/4.8 Regression] ICE in find_typebound_proc_uop, at fortran/class.c:2711

Janus Weil janus@gcc.gnu.org
Wed Jan 16 14:08:00 GMT 2013


Hi all,

here is a close-to-obvious patch for an ICE-on-invalid regression. It
removes as assert, which is reasonable for valid code but can fail
under error conditions (as the PR shows), and replaces it with an
equivalent IF clause.

Regtested on x86_64-unknown-linux-gnu. Ok for trunk and 4.7?

Cheers,
Janus


2013-01-16  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/55983
    * class.c (find_typebound_proc_uop): Check for f2k_derived instead of
    asserting it.


2013-01-16  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/55983
    * gfortran.dg/class_55.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr55983.diff
Type: application/octet-stream
Size: 865 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130116/333e0600/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_55.f90
Type: application/octet-stream
Size: 417 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130116/333e0600/attachment-0001.obj>


More information about the Fortran mailing list