public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33232]  New: Diagnose comma in "read()," and "write(),"
@ 2007-08-29 15:49 burnus at gcc dot gnu dot org
  2007-08-31 14:05 ` [Bug fortran/33232] " patchapp at dberlin dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-29 15:49 UTC (permalink / raw)
  To: gcc-bugs

The following is a common vendor extension but to my knowledge not allowed up
to Fortran 2003 (and probably also Fortran 2008):

write(*,*), 'Hello'
read(*,*), a
end

gfortran -pedantic -std=f95 -Wall accepts simply accepts it.

ifort -stand f03  reports correctly:

fortcom: Warning: a.f90, line 1: Use of comma to separate io-access spec and
io_list is non_standard.
write(*,*), 'Hello'
----------^
fortcom: Warning: a.f90, line 2: Use of comma to separate io-access spec and
io_list is non_standard.
read(*,*), a
---------^


-- 
           Summary: Diagnose comma in "read()," and "write(),"
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/33232] Diagnose comma in "read()," and "write(),"
  2007-08-29 15:49 [Bug fortran/33232] New: Diagnose comma in "read()," and "write()," burnus at gcc dot gnu dot org
@ 2007-08-31 14:05 ` patchapp at dberlin dot org
  2007-08-31 16:02 ` burnus at gcc dot gnu dot org
  2007-08-31 16:22 ` burnus at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: patchapp at dberlin dot org @ 2007-08-31 14:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from patchapp at dberlin dot org  2007-08-31 14:05 -------
Subject: Bug number PR 33232

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg02276.html


-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/33232] Diagnose comma in "read()," and "write(),"
  2007-08-29 15:49 [Bug fortran/33232] New: Diagnose comma in "read()," and "write()," burnus at gcc dot gnu dot org
  2007-08-31 14:05 ` [Bug fortran/33232] " patchapp at dberlin dot org
@ 2007-08-31 16:02 ` burnus at gcc dot gnu dot org
  2007-08-31 16:22 ` burnus at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-31 16:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from burnus at gcc dot gnu dot org  2007-08-31 16:02 -------
Subject: Bug 33232

Author: burnus
Date: Fri Aug 31 16:01:57 2007
New Revision: 127997

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127997
Log:
2007-08-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/33232
        * io.c (match_io): Also diagnose extra comma for READ.

2007-08-31  Tobias Burnus  <burnus@net-b.de>

        PR fortran/33232
        * gfortran.dg/eor_handling_2.f90: Add dg-warnings.
        * gfortran.dg/read_1.f90: New.


Added:
    trunk/gcc/testsuite/gfortran.dg/read_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/io.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/eor_handling_2.f90


-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/33232] Diagnose comma in "read()," and "write(),"
  2007-08-29 15:49 [Bug fortran/33232] New: Diagnose comma in "read()," and "write()," burnus at gcc dot gnu dot org
  2007-08-31 14:05 ` [Bug fortran/33232] " patchapp at dberlin dot org
  2007-08-31 16:02 ` burnus at gcc dot gnu dot org
@ 2007-08-31 16:22 ` burnus at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-31 16:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2007-08-31 16:22 -------
FIXED for the trunk.
Contrary what I claimed in comment 0, only READ was affected - WRITE was
already properly diagnosed.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-31 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-29 15:49 [Bug fortran/33232] New: Diagnose comma in "read()," and "write()," burnus at gcc dot gnu dot org
2007-08-31 14:05 ` [Bug fortran/33232] " patchapp at dberlin dot org
2007-08-31 16:02 ` burnus at gcc dot gnu dot org
2007-08-31 16:22 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).