This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20006] $ format extension accepted in error under -std=f95
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2005 12:32:08 -0000
- Subject: [Bug fortran/20006] $ format extension accepted in error under -std=f95
- References: <20050216120130.20006.tow21@cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jv244 at cam dot ac dot uk 2005-02-16 12:32 -------
> However, gfortran currently accepts it without complaint.
However, in general, this can only be found at runtime (also with NAG f95):
program testRead
implicit none
character(len=19) fmt
character(1) resp
! assume this is well hidden in a different subroutine
fmt='('' hit return: '',$)'
write (*,fmt=fmt)
read (*,'(a)') resp
write (*,'('' well done.'')')
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20006