[all-commits] [llvm/llvm-project] 967137: No longer accept scoped enumerations in C

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu May 5 11:00:21 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 967137ca3cb7cf38b2fedf0415946ff3ffd0ef50
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseDecl.cpp
    M clang/test/Sema/enum.c

  Log Message:
  No longer accept scoped enumerations in C

We had a think-o that would allow a user to declare a scoped
enumeration in C language modes "as a C++11 extension". This is a
think-o because there's no way for the user to spell the name of the
enumerators; C does not have '::' for a fully-qualified name. See
commit d0d87b597259a2b74ae5c2825a081c7e336cb1d0 for details on why this
is unintentional for C.

Fixes #42372

More information about the All-commits mailing list