[clangd] Invalid rename when bringing constructor of templated base into scope
Open
clangd
invalid-code-generation
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Given:
```cpp
using foo = int;
template
struct A {};
struct B : A {
using A::A;
};
```
Hovering over `foo` and renaming it to `bar` causes this invalid transformation:
```cpp
using bar = int;
template
struct A {};
struct B : A {
using A::bar;
// ^^^
// Should stay as "A", not be changed to "bar"
};
```
Tested with clangd 20.1.4.
Contributor guide
Assessment
This issue has not been assessed yet.