https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
In r14-9263-gc7607c4cf18986 I added [[gnu::no_dangling]] which can be used to
suppress the warning in cases where the compiler can't detect that the
reference doesn't actually dangle.
Hopefully that'll work.