https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56389
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed for GCC 11. I cannot figure out which patch fixed it though. There has been a bunch of fixes dealing with return types dealing with C++20 concepts.