The following program works in g77, but gets an 'Bad value during floating
point read' error in gfortran.  

c     blank_test.f program
      character(11)  :: a = ' 2.0030e+ 3'
      real :: f

      read (a,'(BN,E11.0)'),f
      print *,f

      end
c     end of program


I think that ' 2.0030e+ 3' should be a proper floating point value when BN
editing is enabled.  I am not sure what this should do when blank processing is
unspecified.


-- 
           Summary: gfortran does not allow blanks in exponent in float
                    (even with BN)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jjcogliati-r1 at yahoo dot com
 GCC build triplet: x86_64-redhat-linux
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux


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

Reply via email to