https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93605
Nicholas Krause <xerofoify at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xerofoify at gmail dot com --- Comment #3 from Nicholas Krause <xerofoify at gmail dot com> --- I just tried with bool& as auto should just be a bool without a reference. Seems to be a issue with gcc assuming that it must move into the bool if not a ref in the function's signature. And it works for other targets as Andrew pointed out.