[all-commits] [llvm/llvm-project] 5175cd: Disallow _BitInt as an underlying type for an enum...

Erich Keane via All-commits all-commits at lists.llvm.org
Thu Oct 19 11:02:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5175cd777c57190ab9860c304796d386e4df9b8f
      https://github.com/llvm/llvm-project/commit/5175cd777c57190ab9860c304796d386e4df9b8f
  Author: erichkeane <ekeane at nvidia.com>
  Date:   2023-10-19 (Thu, 19 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/CodeGenCXX/ext-int.cpp
    M clang/test/SemaCXX/ext-int.cpp
    M clang/test/SemaCXX/type-traits.cpp

  Log Message:
  -----------
  Disallow _BitInt as an underlying type for an enumeration

As mentioned in #69619, C23 6.7.2.2p5 explicitly prohibits using a
_BitInt as an underlying type to an enumeration. While we had this in
the _ExtInt implementation, the justification for that limitation in C
is compelling, so this is being removed to be compatible with the C23
standard.

Fixes: #69619




More information about the All-commits mailing list