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

--- Comment #1 from Walter Spector <w6ws at earthlink dot net> ---
Simple test case:

program extracomma
  implicit none

  write (*,*), 1, 2, 3
end program

This compiles without error.

I notice that if I compile with -std=f95, it does diagnose this as a GNU
Extension.  My thoughts are that a warning message should be issued, rather
than quietly accepting the extension by default.


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