PR libgfortran/27634
* io/format.c (parse_format_list): Allow missing period in format only
if -std=legacy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114212
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* intrinsics/string_intrinsics.c (compare_string):
t = format_lex (fmt);
if (t != FMT_PERIOD)
{
- fmt->error = period_required;
- goto finished;
+ /* We treat a missing decimal descriptor as 0. Note: This is only
+ 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);