This is the mail archive of the gcc-bugs@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]

[Bug fortran/60751] Extra comma in WRITE statement not diagnosed


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60751

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #2 from Harald Anlauf <anlauf at gmx dot de> ---
gfortran is quite in line with other compilers.  ifort is also quiet by
default.
However,

% gfc-trunk prxxx.f90 -std=f2008
prxxx.f90:4.13:

  write (*,*), 1, 2, 3
             1
Error: GNU Extension: Comma before i/o item list at (1)

% ifort prxxx.f90 -stand f08
prxxx.f90(4): warning #5198: Use of comma to separate io-access spec and
io_list is non_standard.
  write (*,*), 1, 2, 3
-------------^

So gfortran is even stricter than ifort.  Did you complain to Intel?


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