[Bug fortran/48298] [F03] User-Defined Derived-Type IO (DTIO)
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 22 10:36:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48298
--- Comment #22 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Walter Spector from comment #18)
> Awesome!
>
> I have noticed one bug so far. The compiler is missing a check to see if
> the arguments in the I/O procedures have the 'optional' attribute. It is
> allowing the attribute - even though it is illegal. E.g. the following
> should be flagged as erroneous:
>
> SUBROUTINE pwf (dtv,unit,iotype,vlist,iostat,iomsg)
> ! argument definitions
> CLASS(person), INTENT(IN) :: dtv
> INTEGER, INTENT(IN), OPTIONAL :: unit
> CHARACTER (LEN=*), INTENT(IN), OPTIONAL :: iotype
> INTEGER, INTENT(IN), OPTIONAL :: vlist(:)
> INTEGER, INTENT(OUT), OPTIONAL :: iostat
> CHARACTER (LEN=*), INTENT(INOUT), OPTIONAL :: iomsg
> ...
>
> Walter
Hi Walter,
I missed this comment - apologies. I will deal with it asap.
Cheers
Paul
More information about the Gcc-bugs
mailing list