[Patch, Fortran, OOP] PR 46952: [OOP] Spurious "recursive call" error with type bound procedure

Janus Weil janus@gcc.gnu.org
Fri Jan 18 23:02:00 GMT 2013


Hi all,

here is a simple patch for a rejects-valid problem with deferred
type-bound procedures. This is the patch from comment 5 in the PR. A
simpler (but equivalent) patch can be found in comment 4. Both fix the
problem and are free of testsuite regressions.

Is any of the two versions still ok for 4.8? Or should it wait for 4.9?

Cheers,
Janus


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

    PR fortran/46952
    * resolve.c (resolve_call): Do not check deferred procedures for
    recursiveness.


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

    PR fortran/46952
    * gfortran.dg/typebound_deferred_1.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr46952_v2.diff
Type: application/octet-stream
Size: 1972 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130118/6363fa42/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typebound_deferred_1.f90
Type: application/octet-stream
Size: 407 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130118/6363fa42/attachment-0001.obj>


More information about the Gcc-patches mailing list