llvm-project
3d6f4fb5 - [Clang][Sema] Do not perform error recovery for invalid member using-declaration in C++20+ mode (#147003)

Commit
90 days ago
[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
Author
Parents
Loading