[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 26 20:16:00 GMT 2010



------- Comment #2 from burnus at gcc dot gnu dot org  2010-04-26 20:16 -------
(In reply to comment #1)
> Well in a sense it is unused.

Well, but only in a sense - in the example a value is assigned to and then
printed ...

> Regardless, adding a warning for the truncated
> string, the real issue, is straightforward and I will do so.

It might be straight forward, but it needs to be guarded by a special option as
it is 100% valid code. I think printing a run-time warning by default is wrong.


-- 


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



More information about the Gcc-bugs mailing list