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/20441] -finit-local-zero is missing from gfortran



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-11-27 16:47 -------
(In reply to comment #5)
> > > Besides zero initialization [...] a initialization to a (signaling) NaN (for 
> > > complex, real) would be also nice to find uninitialized variables.
> >
> > Why use -Wuninitialize will warn about those cases (though it can produce some
> > false positives).
> 
> -Wuninitialize does not always work (false negative). Or how do you expect a
> compiler to find the problem in such cases:

Well in that case r is unused so .. but if you made it used by a write(*,*) r
in the program, this becomes another PR with a C example which I cannot find
right now.


-- 


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


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