https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107799
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2022-11-22 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- No, according to the published C++20 standard it returns the same type as the argument. That was changed in July 2022 by https://cplusplus.github.io/LWG/issue3656 and libstdc++ doesn't implement that change yet.