This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/33279] Failed to warn uninitialized stack variable
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Sep 2007 13:43:15 -0000
- Subject: [Bug middle-end/33279] Failed to warn uninitialized stack variable
- References: <bug-33279-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-09-02 13:43 -------
bar (frame.value);
That call to bar causes the whole frame struct escapes here, not just the array
element.
void bar (mpz_t);
is really:
void bar(int*);
because of array decaying in parameters.
Again with pointer arithmetic, bar can get back to the original struct and be
able to set prev. So again there is no bug here.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33279