https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115987
--- Comment #15 from Dan Urosu <durosu at yahoo dot com> --- (In reply to Dan Urosu from comment #14) > Thanks for clarifying (1) > I think I can work-around with the pragma. Will try something shortly in the > real code. > > > Can you please elaborate on this "Right, that's how it works." > (just curious, because we do have the FUNC temporary) > > "T& unwrap_2(Wrapper<T>& r, FUNC&&) ", you don't get the warning. > > ->>>> Right, that's how it works. I just saw your reply that explains the above.