Commit a7a8dddd by Jerry DeLisle

re PR fortran/27634 (formatted reading/writing: real format without dot)

2006-05-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/27634
	* io/format.c (parse_format_list): Allow missing period in format only
	if -std=legacy.

From-SVN: r114212
parent a64a81ba
2006-05-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/27634
* io/format.c (parse_format_list): Allow missing period in format only
if -std=legacy.
2006-05-28 Thomas Koenig <Thomas.Koenig@online.de> 2006-05-28 Thomas Koenig <Thomas.Koenig@online.de>
* intrinsics/string_intrinsics.c (compare_string): * intrinsics/string_intrinsics.c (compare_string):
......
...@@ -725,8 +725,16 @@ parse_format_list (st_parameter_dt *dtp) ...@@ -725,8 +725,16 @@ parse_format_list (st_parameter_dt *dtp)
t = format_lex (fmt); t = format_lex (fmt);
if (t != FMT_PERIOD) if (t != FMT_PERIOD)
{ {
fmt->error = period_required; /* We treat a missing decimal descriptor as 0. Note: This is only
goto finished; allowed if -std=legacy, otherwise an error occurs. */
if (compile_options.warn_std != 0)
{
fmt->error = period_required;
goto finished;
}
fmt->saved_token = t;
tail->u.real.d = 0;
break;
} }
t = format_lex (fmt); t = format_lex (fmt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment