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

Reply via email to