[Fortran, Patch] PR 33232 - Reject comma in "READ(...)," with -std=f95
Tobias Burnus
burnus@net-b.de
Fri Aug 31 15:08:00 GMT 2007
:ADDPATCH fortran:
The comma before the i/o list is invalid in Fortran 95/2003 for READ and
WRITE, but a common vendor extension. For WRITE gfortran was correctly
diagnosing it (-std=f95/f2003 as error, -pedantic as warning), but for
READ it didn't.
read '(f3.3)', a ! valid
read *, a ! valid
read(*,*), a ! Invalid
Build and check-gfortran'ed on x86-64-Linux.
Ok for the trunk?
Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: io_comma.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070831/c0c59e3d/attachment.ksh>
More information about the Fortran
mailing list