This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27304] gfortran: Warn/abort when format in write does not fit passed arguments
- From: "burnus at net-b dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2006 08:09:00 -0000
- Subject: [Bug fortran/27304] gfortran: Warn/abort when format in write does not fit passed arguments
- References: <bug-27304-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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