public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37423]  New: Fortran 2003 DEFERRED bindings not yet implemented
@ 2008-09-08 14:07 domob at gcc dot gnu dot org
  2008-09-08 14:07 ` [Bug fortran/37423] " domob at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-08 14:07 UTC (permalink / raw)
  To: gcc-bugs

In the current implementation of Fortran 2003 type-bound procedures, DEFERRED
bindings are not yet implemented.  The DEFERRED type attribute will be parsed
but results in an immediate error.


-- 
           Summary: Fortran 2003 DEFERRED bindings not yet implemented
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: domob at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37423


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/37423] Fortran 2003 DEFERRED bindings not yet implemented
  2008-09-08 14:07 [Bug fortran/37423] New: Fortran 2003 DEFERRED bindings not yet implemented domob at gcc dot gnu dot org
@ 2008-09-08 14:07 ` domob at gcc dot gnu dot org
  2008-12-07 17:13 ` [Bug fortran/37423] Fortran 2003: " domob at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-09-08 14:07 UTC (permalink / raw)
  To: gcc-bugs



-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |domob at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-08 14:06:03
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37423


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/37423] Fortran 2003: DEFERRED bindings not yet implemented
  2008-09-08 14:07 [Bug fortran/37423] New: Fortran 2003 DEFERRED bindings not yet implemented domob at gcc dot gnu dot org
  2008-09-08 14:07 ` [Bug fortran/37423] " domob at gcc dot gnu dot org
@ 2008-12-07 17:13 ` domob at gcc dot gnu dot org
  2009-03-29 17:47 ` domob at gcc dot gnu dot org
  2009-04-03 14:46 ` domob at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: domob at gcc dot gnu dot org @ 2008-12-07 17:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from domob at gcc dot gnu dot org  2008-12-07 17:12 -------
A proposed patch for 4.5 can be found at:
http://gcc.gnu.org/ml/fortran/2008-12/msg00109.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37423


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/37423] Fortran 2003: DEFERRED bindings not yet implemented
  2008-09-08 14:07 [Bug fortran/37423] New: Fortran 2003 DEFERRED bindings not yet implemented domob at gcc dot gnu dot org
  2008-09-08 14:07 ` [Bug fortran/37423] " domob at gcc dot gnu dot org
  2008-12-07 17:13 ` [Bug fortran/37423] Fortran 2003: " domob at gcc dot gnu dot org
@ 2009-03-29 17:47 ` domob at gcc dot gnu dot org
  2009-04-03 14:46 ` domob at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-03-29 17:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from domob at gcc dot gnu dot org  2009-03-29 17:47 -------
Subject: Bug 37423

Author: domob
Date: Sun Mar 29 17:47:00 2009
New Revision: 145248

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145248
Log:
2009-03-29  Daniel Kraft  <d@domob.eu>

        PR fortran/37423
        * gfortran.h (struct gfc_typebound_proc): Added new flag `deferred' and
        added a comment explaining DEFERRED binding handling.
        * decl.c (match_binding_attributes): Really match DEFERRED attribute.
        (match_procedure_in_type): Really match PROCEDURE(interface) syntax
        and do some validity checks for DEFERRED and this construct.
        * module.c (binding_overriding): New string constant for DEFERRED.
        (mio_typebound_proc): Module-IO DEFERRED flag.
        * resolve.c (check_typebound_override): Ensure that a non-DEFERRED
        binding is not overridden by a DEFERRED one.
        (resolve_typebound_procedure): Allow abstract interfaces as targets
        for DEFERRED bindings.
        (ensure_not_abstract_walker), (ensure_not_abstract): New methods.
        (resolve_fl_derived): Use new `ensure_not_abstract' method for
        non-ABSTRACT types extending ABSTRACT ones to ensure each DEFERRED
        binding is overridden.
        (check_typebound_baseobject): New method.
        (resolve_compcall), (resolve_typebound_call): Check base-object of
        the type-bound procedure call.
        * gfc-internals.texi (Type-bound procedures): Document a little bit
        about internal handling of DEFERRED bindings.

2009-03-29  Daniel Kraft  <d@domob.eu>

        PR fortran/37423
        * gfortran.dg/typebound_proc_4.f03: Remove not-implemented check for
        DEFERRED bindings.
        * gfortran.dg/typebound_proc_9.f03: New test.
        * gfortran.dg/typebound_proc_10.f03: New test.
        * gfortran.dg/typebound_proc_11.f03: New test.
        * gfortran.dg/abstract_type_5.f03: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/abstract_type_5.f03
    trunk/gcc/testsuite/gfortran.dg/typebound_proc_10.f03
    trunk/gcc/testsuite/gfortran.dg/typebound_proc_11.f03
    trunk/gcc/testsuite/gfortran.dg/typebound_proc_9.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/gfc-internals.texi
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/module.c
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/typebound_proc_4.f03


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37423


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/37423] Fortran 2003: DEFERRED bindings not yet implemented
  2008-09-08 14:07 [Bug fortran/37423] New: Fortran 2003 DEFERRED bindings not yet implemented domob at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-03-29 17:47 ` domob at gcc dot gnu dot org
@ 2009-04-03 14:46 ` domob at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: domob at gcc dot gnu dot org @ 2009-04-03 14:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from domob at gcc dot gnu dot org  2009-04-03 14:46 -------
Fixed on trunk (4.5)


-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37423


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-04-03 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08 14:07 [Bug fortran/37423] New: Fortran 2003 DEFERRED bindings not yet implemented domob at gcc dot gnu dot org
2008-09-08 14:07 ` [Bug fortran/37423] " domob at gcc dot gnu dot org
2008-12-07 17:13 ` [Bug fortran/37423] Fortran 2003: " domob at gcc dot gnu dot org
2009-03-29 17:47 ` domob at gcc dot gnu dot org
2009-04-03 14:46 ` domob at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).