public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/88058] gcc fails to detect use of out of scope variable ?
[not found] <bug-88058-4@http.gcc.gnu.org/bugzilla/>
@ 2024-04-09 7:32 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2024-04-09 7:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88058
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Target Milestone|--- |12.0
Status|NEW |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 12 adds:
<source>: In function 'f':
<source>:16:9: warning: dangling pointer 'p2' to 'buf' may be used
[-Wdangling-pointer=]
16 | g( p2); // Bang !
| ^~~~~~
<source>:12:22: note: 'buf' declared here
12 | char buf[ 10];
| ^~~
Which makes this a dup of bug 63272.
*** This bug has been marked as a duplicate of bug 63272 ***
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-09 7:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-88058-4@http.gcc.gnu.org/bugzilla/>
2024-04-09 7:32 ` [Bug c/88058] gcc fails to detect use of out of scope variable ? pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).