gcc/libgfortran/io
Jerry DeLisle 5ff48aabf7 Fortran: Fix handling of parsed format strings.
Previously parsed strings with errors were being cached such
	that subsequent use of the format string were not being
	checked for errors.

	PR libfortran/119856

libgfortran/ChangeLog:

	* io/format.c (parse_format_list): Set the fmt->error
	message for missing comma.
	(parse_format): Do not cache the parsed format string
	if a previous error ocurred.

gcc/testsuite/ChangeLog:

	* gfortran.dg/pr119856.f90: New test.
2025-06-01 16:40:50 -07:00
..
async.c Update copyright years. 2025-01-02 11:59:57 +01:00
async.h Update copyright years. 2025-01-02 11:59:57 +01:00
close.c Fortran: Fix runtime segfault closing negative unit 2025-04-13 08:39:32 -07:00
fbuf.c Update copyright years. 2025-01-02 11:59:57 +01:00
fbuf.h Update copyright years. 2025-01-02 11:59:57 +01:00
file_pos.c Update copyright years. 2025-01-02 11:59:57 +01:00
format.c Fortran: Fix handling of parsed format strings. 2025-06-01 16:40:50 -07:00
format.h Update copyright years. 2025-01-02 11:59:57 +01:00
inquire.c Update copyright years. 2025-01-02 11:59:57 +01:00
intrinsics.c Update copyright years. 2025-01-02 11:59:57 +01:00
io.h Update copyright years. 2025-01-02 11:59:57 +01:00
list_read.c Update copyright years. 2025-01-02 11:59:57 +01:00
lock.c Update copyright years. 2025-01-02 11:59:57 +01:00
open.c Fortran: Fix runtime segfault closing negative unit 2025-04-13 08:39:32 -07:00
read.c fortran: fix simple typo in libgfortran 2025-05-10 19:04:12 +02:00
size_from_kind.c Update copyright years. 2025-01-02 11:59:57 +01:00
transfer.c Fortran: Fix handling of the X edit descriptor. 2025-02-06 09:43:26 -08:00
transfer128.c Update copyright years. 2025-01-02 11:59:57 +01:00
unit.c Update copyright years. 2025-01-02 11:59:57 +01:00
unix.c Update copyright years. 2025-01-02 11:59:57 +01:00
unix.h Update copyright years. 2025-01-02 11:59:57 +01:00
write.c Fortran: Fix UTF-8 output with A edit descriptor. 2025-01-24 09:05:56 -08:00
write_float.def Update copyright years. 2025-01-02 11:59:57 +01:00