This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/60751] Extra comma in WRITE statement not diagnosed
- From: "w6ws at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Apr 2014 17:34:49 +0000
- Subject: [Bug fortran/60751] Extra comma in WRITE statement not diagnosed
- Auto-submitted: auto-generated
- References: <bug-60751-4 at http dot gcc dot gnu dot org/bugzilla/>
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.