[all-commits] [llvm/llvm-project] 3d6f4f: [Clang][Sema] Do not perform error recovery for in...

Yanzuo Liu via All-commits all-commits at lists.llvm.org
Fri Jul 4 23:30:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d6f4fb5f7acb1cecd8ee143627d2538781a6241
      https://github.com/llvm/llvm-project/commit/3d6f4fb5f7acb1cecd8ee143627d2538781a6241
  Author: Yanzuo Liu <zwuis at outlook.com>
  Date:   2025-07-05 (Sat, 05 Jul 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/SemaCXX/nested-name-spec.cpp

  Log Message:
  -----------
  [Clang][Sema] Do not perform error recovery for invalid member using-declaration in C++20+ mode (#147003)

Previously, Clang tried to perform error recovery for invalid member
using-declaration whose nested-name-specifier refers to its own class in
C++20+ mode, which causes crash.

```cpp
template <typename...> struct V {};
struct S : V<> {
  using S::V; // error recovery here
  V<> v; // crash
};
```

This PR disables the error recovery to fix the crash.

Fixes #63254



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