Issue 161990
Summary [clangd] Invalid rename when bringing constructor of templated base into scope
Labels new issue
Assignees
Reporter localspook
    Given:
```cpp
using foo = int;

template <typename T>
struct A {};

struct B : A<foo> {
    using A<foo>::A;
};
```
Hovering over `foo` and renaming it to `bar` causes this invalid transformation:
```cpp
using bar = int;

template <typename T>
struct A {};

struct B : A<bar> {
    using A<bar>::bar;
 // ^^^
               // Should stay as "A", not be changed to "bar"
};
```
Tested with clangd 20.1.4.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to