This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/48785] BOZ editing of real numbers not working with -std=f2008
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Apr 2011 07:02:52 +0000
- Subject: [Bug libfortran/48785] BOZ editing of real numbers not working with -std=f2008
- Auto-submitted: auto-generated
- References: <bug-48785-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48785
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org,
| |jvdelisle at gcc dot
| |gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-27 06:55:48 UTC ---
In libgfortran/io/transfer.c's one currently has in
formatted_transfer_scalar_read and formatted_transfer_scalar_write code such as
case FMT_B:
if (n == 0)
goto need_data;
if (!(compile_options.allow_std & GFC_STD_GNU)
&& require_type (dtp, BT_INTEGER, type, f))
return;
write_b (dtp, f, p, kind);
break;
s/GFC_STD_GNU/GFC_STD_F2008/ should take care of that. However, that might
accept too much, namely CHARACTER and LOGICAL, which are excluded at: "The
corresponding input/output list item shall be of type integer, real, or
complex."
I don't know whether we should care - I tend to be more liberal for run-time
diagnostic than for compile-time diagnostic ...