https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98990
David Stone <david at doublewise dot net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david at doublewise dot net --- Comment #1 from David Stone <david at doublewise dot net> --- To trigger this bug, the return type can be declared `auto &&`, `auto const &`, or `auto &`. If it is `auto` or `decltype(auto)`, the bug is not triggered. Whichever form is used, the same form must be used for both declarations.