[Bug c++/114225] False positive -Werror=dangling-reference
xry111 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 4 09:07:45 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114225
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
CC| |xry111 at gcc dot gnu.org
--- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
-Wdangling-reference is a very vague warning as it's documented. Either not
use it or suppress it with #pragma (also documented).
Document:
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/C_002b_002b-Dialect-Options.html#index-Wdangling-reference
*** This bug has been marked as a duplicate of bug 114220 ***
More information about the Gcc-bugs
mailing list