[Bug c++/109774] template function causes Spurious dangling reference warning while non-template does not
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 10 20:57:26 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109774
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Here it comes down to
13900 || warning_suppressed_p (fndecl, OPT_Wdangling_reference)
in do_warn_dangling_reference. So it's about the propagation of the
suppression bits.
More information about the Gcc-bugs
mailing list