This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]