[libcxx-commits] [PATCH] D97283: [libcxx][type_traits] is_unsigned is false for enum types

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 4 23:07:10 PST 2021


Mordante added a comment.

It's a clang bug: clang/docs/LanguageExtensions.rst:1024

  * ``__is_unsigned`` (C++, Embarcadero)
    Note that this currently returns true for enumeration types if the underlying
    type is unsigned, in violation of the requirements for ``std::is_unsigned``.
    This behavior is likely to change in a future version of Clang.

@zoecarver fixed the signed part in D67897 <https://reviews.llvm.org/D67897>

I want to look at the Clang site unless somebody beats me to it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97283/new/

https://reviews.llvm.org/D97283



More information about the libcxx-commits mailing list