[Bug c++/101566] gcc miscompiles lambda used as tuple-like object applied to function for call

weilercdale at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 21 19:23:55 GMT 2021


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

--- Comment #7 from Dale Weiler <weilercdale at gmail dot com> ---
Yeah the code example is invalid, there is a reference to a temporary,
decltype(auto) on *ptr produces reference type, somehow I thought it produced
the value type, sorry for the confusion.


More information about the Gcc-bugs mailing list