[Bug c++/114225] False positive -Werror=dangling-reference
xry111 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 4 09:33:39 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114225
--- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Fedor Chelnokov from comment #2)
> Please note that this is a regression in GCC 13. GCC 12 (or other compilers)
> do not show a warning here: https://godbolt.org/z/Yhfad47xs
No, GCC 12 does not have -Wdangling-reference at all. It was added in GCC 13.1
as a part of -Wall, but then moved to -Wextra in 13.2 because it's vague.
More information about the Gcc-bugs
mailing list