public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/38735]  New: Default BLANK= mode for internal units is wrong
@ 2009-01-05 21:33 jvdelisle at gcc dot gnu dot org
  2009-01-05 21:43 ` [Bug libfortran/38735] [4.4 Regresssion] " jvdelisle at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-01-05 21:33 UTC (permalink / raw)
  To: gcc-bugs

With Dominique's test case:

character(15) :: str="+ .339  567+2"
real :: x
read(str,'(F15.6)') x
print *, x
read(str,'(G15.7)') x
print *, x
end

Current trunk yields:

$ ./a.out 
   33.956699    
  0.33899999    

It should be:

$ ./a.out 
   33.95670    
   33.95670


-- 
           Summary: Default BLANK= mode for internal units is wrong
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: jvdelisle at gcc dot gnu dot org
        ReportedBy: jvdelisle at gcc dot gnu dot org


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


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

* [Bug libfortran/38735] [4.4 Regresssion] Default BLANK= mode for internal units is wrong
  2009-01-05 21:33 [Bug libfortran/38735] New: Default BLANK= mode for internal units is wrong jvdelisle at gcc dot gnu dot org
@ 2009-01-05 21:43 ` jvdelisle at gcc dot gnu dot org
  2009-01-05 22:56 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-01-05 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2009-01-05 21:43 -------
>From the standard:

"an internal file or a preconnected file that has not been opened is treated as
if the file had been opened with BLANK = 'NULL'."

Patch on its way.

This is a regression from 4.3.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Default BLANK= mode for     |[4.4 Regresssion] Default
                   |internal units is wrong     |BLANK= mode for internal
                   |                            |units is wrong
   Target Milestone|---                         |4.4.0


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


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

* [Bug libfortran/38735] [4.4 Regresssion] Default BLANK= mode for internal units is wrong
  2009-01-05 21:33 [Bug libfortran/38735] New: Default BLANK= mode for internal units is wrong jvdelisle at gcc dot gnu dot org
  2009-01-05 21:43 ` [Bug libfortran/38735] [4.4 Regresssion] " jvdelisle at gcc dot gnu dot org
@ 2009-01-05 22:56 ` jvdelisle at gcc dot gnu dot org
  2009-01-05 22:57 ` jvdelisle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-01-05 22:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2009-01-05 22:55 -------
Subject: Bug 38735

Author: jvdelisle
Date: Mon Jan  5 22:55:15 2009
New Revision: 143102

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143102
Log:
2009-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libfortran/38735
        * io/unit.c (get_internal_unit): Set default BLANK= status to NULL for
        internal units.

Modified:
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/io/unit.c


-- 


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


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

* [Bug libfortran/38735] [4.4 Regresssion] Default BLANK= mode for internal units is wrong
  2009-01-05 21:33 [Bug libfortran/38735] New: Default BLANK= mode for internal units is wrong jvdelisle at gcc dot gnu dot org
  2009-01-05 21:43 ` [Bug libfortran/38735] [4.4 Regresssion] " jvdelisle at gcc dot gnu dot org
  2009-01-05 22:56 ` jvdelisle at gcc dot gnu dot org
@ 2009-01-05 22:57 ` jvdelisle at gcc dot gnu dot org
  2009-01-05 23:36 ` jakub at gcc dot gnu dot org
  2009-01-06  0:31 ` jvdelisle at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-01-05 22:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2009-01-05 22:57 -------
Subject: Bug 38735

Author: jvdelisle
Date: Mon Jan  5 22:57:30 2009
New Revision: 143103

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143103
Log:
2009-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libfortran/38735
        * gfortran.dg/fmt_bz_bn.f: Update test.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/fmt_bz_bn.f


-- 


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


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

* [Bug libfortran/38735] [4.4 Regresssion] Default BLANK= mode for internal units is wrong
  2009-01-05 21:33 [Bug libfortran/38735] New: Default BLANK= mode for internal units is wrong jvdelisle at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-01-05 22:57 ` jvdelisle at gcc dot gnu dot org
@ 2009-01-05 23:36 ` jakub at gcc dot gnu dot org
  2009-01-06  0:31 ` jvdelisle at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-01-05 23:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug libfortran/38735] [4.4 Regresssion] Default BLANK= mode for internal units is wrong
  2009-01-05 21:33 [Bug libfortran/38735] New: Default BLANK= mode for internal units is wrong jvdelisle at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-01-05 23:36 ` jakub at gcc dot gnu dot org
@ 2009-01-06  0:31 ` jvdelisle at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-01-06  0:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2009-01-06 00:30 -------
Fixed on trunk


-- 

jvdelisle at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-01-06  0:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-05 21:33 [Bug libfortran/38735] New: Default BLANK= mode for internal units is wrong jvdelisle at gcc dot gnu dot org
2009-01-05 21:43 ` [Bug libfortran/38735] [4.4 Regresssion] " jvdelisle at gcc dot gnu dot org
2009-01-05 22:56 ` jvdelisle at gcc dot gnu dot org
2009-01-05 22:57 ` jvdelisle at gcc dot gnu dot org
2009-01-05 23:36 ` jakub at gcc dot gnu dot org
2009-01-06  0:31 ` 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).