[Bug middle-end/33279] Failed to warn uninitialized stack variable

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 2 13:43:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list