[Bug fortran/20006] $ format extension accepted in error under -std=f95

jv244 at cam dot ac dot uk gcc-bugzilla@gcc.gnu.org
Wed Feb 16 17:02:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list