https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110716
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Some c++11ism slipped into the last gcc 10 release it seems. Since gcc 10.5 is the last release of the gcc 10 series, there is not much to be done there. Now I can't remember if gcc 11 requires c++11 compiler or not.