This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/80484] Three syntax errors involving derived-type I/O


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80484

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code

--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Jerry DeLisle from comment #8)
> Regarding:
> 
>    use dt_write_mod, only: B_type, write (formatted)
> 

The following patchlet allows the above to compile.

diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index 4d6afa55..e8cba145 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -631,6 +631,7 @@ gfc_match_use (void)

        case INTERFACE_USER_OP:
        case INTERFACE_GENERIC:
+       case INTERFACE_DTIO:
          m = gfc_match (" =>");

          if (type == INTERFACE_USER_OP && m == MATCH_YES

I will get these into trunk (8.0) soon. 7.0 is in the middle of being released.
I will ask the release manager if I can apply it, but if not will backport it
after the release so it will get out there as soon as possible.

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