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 middle-end/33279] Failed to warn uninitialized stack variable



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


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