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 gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Sep 2007 14:01:30 -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 #7 from pinskia at gmail dot com 2007-09-02 14:01 -------
Subject: Re: Failed to warn uninitialized stack variable
On 2 Sep 2007 13:56:13 -0000, hjl at lucon dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
> What does bar get back to? Are you saying if a pointer is passed to bar,
> it can get back to any original struct where the pointer is a field?
It only matters at the context at the point bar is called with the
struct. No other place matters. It does not matter if bar can be
called with a simple array (that will cause undefined code if bar
tries to go before the array) as it still can be using pointer
arithmetic.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33279