diff options
author | Daniel Kraft <d@domob.eu> | 2008-07-22 19:05:55 +0200 |
---|---|---|
committer | Daniel Kraft <domob@gcc.gnu.org> | 2008-07-22 19:05:55 +0200 |
commit | 9cad01cefbf1620fe2264feab58011ea3c23ccee (patch) | |
tree | 67b495422c086b17e39317d3339ecd1b1cfb0040 /libgfortran/configure.host | |
parent | 1e58e43be96f1001a41de4e770a0e1f78e8ee68e (diff) | |
download | gcc-9cad01cefbf1620fe2264feab58011ea3c23ccee.zip gcc-9cad01cefbf1620fe2264feab58011ea3c23ccee.tar.gz gcc-9cad01cefbf1620fe2264feab58011ea3c23ccee.tar.bz2 |
re PR fortran/29835 (Error message of unknown edit descriptor needs improvement)
2008-07-22 Daniel Kraft <d@domob.eu>
PR fortran/29835
* io.c (error_element), (format_locus): New static globals.
(unexpected_element): Spelled out this message fully.
(next_char): Keep track of locus when not MODE_STRING.
(next_char_not_space): Remember last parsed element in error_element.
(format_lex): Fix two indentation errors.
(check_format): Use format_locus and possibly error_element for a
slightly better error message on invalid format.
(check_format_string): Set format_locus to start of the string
expression used as format.
2008-07-22 Daniel Kraft <d@domob.eu>
PR fortran/29835
* io/format.c (struct format_data): New member error_element.
(unexpected_element): Added '%c' to message.
(next_char): Keep track of last parsed character in fmt->error_element.
(format_error): If the message is unexpected_element, output the
offending character, too.
2008-07-22 Daniel Kraft <d@domob.eu>
PR fortran/29835
* gfortran.dg/fmt_error_3.f90: New test.
* gfortran.dg/fmt_error_4.f90: New test.
* gfortran.dg/fmt_error_5.f90: New test.
From-SVN: r138063
Diffstat (limited to 'libgfortran/configure.host')
0 files changed, 0 insertions, 0 deletions