public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/40319]  New: write (*,'(A1)') 65 should generate an error/warning
@ 2009-06-01 12:28 tkoenig at gcc dot gnu dot org
  2009-06-01 17:41 ` [Bug libfortran/40319] " burnus at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2009-06-01 12:28 UTC (permalink / raw)
  To: gcc-bugs

$ cat foo.f
      write (*,'(A1)') 65
      end
$ gfortran -std=f95 -pedantic -Wall foo.f
$ ./a.out
A
$ 

We might want to permit this with -std=legacy, though.  g77 also accepts it.


-- 
           Summary: write (*,'(A1)') 65 should generate an error/warning
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: enhancement
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


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


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

* [Bug libfortran/40319] write (*,'(A1)') 65 should generate an error/warning
  2009-06-01 12:28 [Bug libfortran/40319] New: write (*,'(A1)') 65 should generate an error/warning tkoenig at gcc dot gnu dot org
@ 2009-06-01 17:41 ` burnus at gcc dot gnu dot org
  2009-12-18 14:45 ` pault at gcc dot gnu dot org
  2009-12-18 15:38 ` jvdelisle at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-06-01 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2009-06-01 17:41 -------
If we can have a warning/error at compile time it would be great.

However, I'm inclined to allow it for -std=gnu at run time. (I'm personally
against too much standard diagnostics at run time. If such an error appears
after a lengthy calculation or if the user does not have the source code, such
diagnostics are rather unfriendly. While compile-time errors are OK - they can
easily worked around using -std=legacy or by changing the source code.)


-- 


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


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

* [Bug libfortran/40319] write (*,'(A1)') 65 should generate an error/warning
  2009-06-01 12:28 [Bug libfortran/40319] New: write (*,'(A1)') 65 should generate an error/warning tkoenig at gcc dot gnu dot org
  2009-06-01 17:41 ` [Bug libfortran/40319] " burnus at gcc dot gnu dot org
@ 2009-12-18 14:45 ` pault at gcc dot gnu dot org
  2009-12-18 15:38 ` jvdelisle at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pault at gcc dot gnu dot org @ 2009-12-18 14:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pault at gcc dot gnu dot org  2009-12-18 14:45 -------
Hmmm! What shall we do with this?

IMHO we should issue a WONTFIX.

Paul


-- 


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


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

* [Bug libfortran/40319] write (*,'(A1)') 65 should generate an error/warning
  2009-06-01 12:28 [Bug libfortran/40319] New: write (*,'(A1)') 65 should generate an error/warning tkoenig at gcc dot gnu dot org
  2009-06-01 17:41 ` [Bug libfortran/40319] " burnus at gcc dot gnu dot org
  2009-12-18 14:45 ` pault at gcc dot gnu dot org
@ 2009-12-18 15:38 ` jvdelisle at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-12-18 15:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2009-12-18 15:38 -------
I agree, closing


-- 

jvdelisle at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-12-18 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-01 12:28 [Bug libfortran/40319] New: write (*,'(A1)') 65 should generate an error/warning tkoenig at gcc dot gnu dot org
2009-06-01 17:41 ` [Bug libfortran/40319] " burnus at gcc dot gnu dot org
2009-12-18 14:45 ` pault at gcc dot gnu dot org
2009-12-18 15:38 ` jvdelisle 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).