We should probably issue a warning or error here, or else blank out the rest of the line (g77 and ifort do so).
This is a corner case of an extension, so I don't think this merits anything more than "enhancement". $ cat dollar.f program main character*20 line line = '1234567890ABCDEFGHIJ' write (line, '(A$)') 'asdf' print *,line end $ gfortran dollar.f $ ./a.out asdf567890ABCDEFGHIJ $ g77 dollar.f $ ./a.out asdf $ gfortran -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../../gcc/trunk/configure --prefix=/home/ig25 --enable-languages=c,fortran Thread model: posix gcc version 4.2.0 20051220 (experimental) -- Summary: internal file and dollar edit descriptor Product: gcc Version: 4.2.0 Status: UNCONFIRMED 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=25545