[Bug libstdc++/107799] Wrong return type for std::bit_width

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 22 00:51:15 GMT 2022


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.


More information about the Gcc-bugs mailing list