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

--- Comment #2 from Barnabás Pőcze <pobrn at protonmail dot com> ---
So because `A::p` might point into the temporary of type `B` returned by `f()`,
the warning is shown? If so, why don't I get a warning if `x` is not a
reference? The same potential issue is possible in that case, no?

Reply via email to