[all-commits] [llvm/llvm-project] 9ef0a8: [Clang] fixed false positive redeclaration error f...

Oleksandr T. via All-commits all-commits at lists.llvm.org
Thu Jul 10 08:14:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ef0a886e621eb4202f82054983c383fa82aff9a
      https://github.com/llvm/llvm-project/commit/9ef0a886e621eb4202f82054983c383fa82aff9a
  Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/SemaCXX/cxx20-using-enum.cpp

  Log Message:
  -----------
  [Clang] fixed false positive redeclaration error for using enum in nested scopes (#147711)

Fixes #147495 

--- 

This patch addresses the issue of false-positive redeclaration errors
that occur for `using enum` declarations in nested class scopes

```cpp
struct S {
  enum class E { A };
  using enum E;

  struct S1 {
    using enum E; // no error
  };
};
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list