https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473
--- Comment #42 from john.harper at vuw dot ac.nz --- I think Manfred is correct here because buffer and a are both of type character, and so the read statement should not have been trying to read integers. On Wed, 23 Jul 2025, manfred99 at gmx dot ch wrote: > Date: Wed, 23 Jul 2025 12:28:51 +0000 > From: manfred99 at gmx dot ch <gcc-bugzi...@gcc.gnu.org> > To: john.har...@vuw.ac.nz > Subject: [Bug fortran/105473] semicolon allowed when list-directed read > integer with decimal='point' > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 > > Manfred Schwarb <manfred99 at gmx dot ch> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |manfred99 at gmx dot ch > > --- Comment #41 from Manfred Schwarb <manfred99 at gmx dot ch> --- > Jerry, are you really sure about this? > > character(80) buffer,a > buffer="33;44" > read(buffer,*,decimal="point") a > print*,a > end > > gives (with GCC 15): > At line 3 of file c.f > Fortran runtime error: Semicolon not allowed as separator with DECIMAL='point' > > I would have expected the print-out "33;44". > > > I would have expected, that the semicolon is treated as a plain character > without any special meaning in case of decimal="point". > I only glimpsed over the cited standards sniplets in this thread and > can't be sure, therefore, but I did not find anything forbidding the use of > semicolons as plain characters. > It always talks about semicolons as separators in case of decimal="comma" > (always conditional on decimal="comma"), > but I don't want to use it as separator, but as a plain character. > > I think that a semicolon has/should have only separator properties > *in case of decimal="comma"*, and only then. > > -- > You are receiving this mail because: > You reported the bug. -- John Harper, School of Mathematics and Statistics Victoria Univ. of Wellington, PO Box 600, Wellington 6140, New Zealand. e-mail john.har...@vuw.ac.nz