[Bug middle-end/10138] warn for uninitialized arrays passed as const* arguments

manu at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 20 15:08:00 GMT 2007

------- Comment #13 from manu at gcc dot gnu dot org  2007-08-20 15:08 -------
(In reply to comment #12)
> This testcase has nothing to do with uninitialized variables. If the variable
> is 'const' already, then there will never be a warning. Will it produce
> segmentation fault for a local automatic uninitialized pointer?

Of course, I mean pointer to (or array of, in this case) uninitialized data,
not that the pointer itself is uninitialized. Sorry for the confusion.



More information about the Gcc-bugs mailing list