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/27304] gfortran: Warn/abort when format in write does not fit passed arguments



------- Comment #8 from burnus at net-b dot de  2006-04-27 08:09 -------
Subject: Re:  gfortran: Warn/abort when format in write
 does not fit passed arguments

(In reply to comment #7)
> Tobias, I hope this is what you were looking for.  I don't really
think we need
> a compile time check.  That would be pretty involved to do and the
error is
> caught at runtime.
I think it is ok (though Brooks wording is probably better).

Still it would be nice if it would be detected during compile time. In
my case it was burried in an
   if(something that rarely happens) write(*,'(''n'')') n
which I wouldn't have found easily without the compile-time warning of
the NAG compiler.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27304


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