This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/25545] New: internal file and dollar edit descriptor
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2005 10:17:56 -0000
- Subject: [Bug libfortran/25545] New: internal file and dollar edit descriptor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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