[patch,fortran] PR33268 read ('(f3.3)'), a rejected due to the extra (...)
FX
fxcoudert@gmail.com
Fri May 2 08:01:00 GMT 2008
> 2008-04-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
>
> PR fortran/33268
> * gfortran.h: Add extra_comma pointer to gfc_dt structure.
> * io.c (gfc_free_dt): Free extra_comma.
> (gfc_resolve_dt): If an extra comma was encountered and io_unit is
> type
> BT_CHARACTER, resolve to format_expr and set default unit. Error if
> io_kind is M_WRITE. (match_io): Match the extra comma and set new
> pointer, extra_comma.
OK, with only one thing to change:
> The io_kind is passed in extra_comma->value.logical. I used this
> since it is an int and can hold the enumerator type without
> problem. Another option would be to add "io_kind k" to the union
> for value in gfc_expr, giving more readable code.
Yes, I think that'd be better. Please add a clear comment on top of
this new union member in gfortran.h.
Thanks,
FX
--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/
More information about the Gcc-patches
mailing list