This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran, Patch] PR 33232 - Reject comma in "READ(...)," with -std=f95


Tobias Burnus wrote:
: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?

From looking over the code, I think this will break the second case you mentioned. Do we have any testcases for this?


Cheers,
- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]