[Bug middle-end/105316] Seemingly bogus -Wdangling-pointer from ppc/ppc64 kernel printk with gcc12

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 20 03:29:47 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105316

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The warning is correct __str goes out of the scope when the statement
expression ends.


More information about the Gcc-bugs mailing list