]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix runtime bogus diagnostic with ';'
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 5 Aug 2025 19:10:24 +0000 (12:10 -0700)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 13 Aug 2025 02:49:40 +0000 (19:49 -0700)
commitb078015d94152e0e6d19de67717371e79f05b18d
tree0caccd970c5df133d55a7cb36237d4e34c6bdce5
parent88091b125b1d9f84f95eaf6977756819b7f22d4a
Fortran: Fix runtime bogus diagnostic with ';'

PR libfortran/121234

libgfortran/ChangeLog:

* io/list_read.c (read_character): Add checks to bypass eating
semicolons when reading strings with decimal mode 'point'
(list_formatted_read_scalar): Likewise.

gcc/testsuite/ChangeLog:

* gfortran.dg/pr121234.f90: New test.

(cherry picked from commit 3d496ed9a5821ae9188e5242c1e26eea80c4039f)
gcc/testsuite/gfortran.dg/pr121234.f90 [new file with mode: 0644]
libgfortran/io/list_read.c