Using the $ character in a write format is a commonly-implemented extension to 
imply non-advancing output; it is, however, not part of any Fortran standard 
(f90 and later standards offer an alternative method to achieve the same aim). 
 
However, gfortran currently accepts it without complaint. 
 
parabrisas:~/test% cat testRead.f  
 
      program testRead 
      implicit none 
      print '(a,$)','hello world' 
      print * 
      end 
parabrisas:~/test% gfortran -std=f95 testRead.f  
parabrisas:~/test%

-- 
           Summary: $ format extension accepted in error under -std=f95
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tow21 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to