This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30506] violation of automatic storage duration [basic.stc.auto 3.7.2/1].
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2007 23:23:42 -0000
- Subject: [Bug middle-end/30506] violation of automatic storage duration [basic.stc.auto 3.7.2/1].
- References: <bug-30506-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pluto at agmk dot net 2007-01-18 23:23 -------
(In reply to comment #1)
> This is not really a violation of that rule at all. What that rule is stating
> is that if you access that array again outside of the block where it was
> created, you invoke undefined behavior.
hmm, you've a right, so could we rework the bug to some kind
of feature-request? i'd love to see the stack cleanup before f() call.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30506