Issue |
139226
|
Summary |
Duplicate lookup errors
|
Labels |
clang:frontend
|
Assignees |
|
Reporter |
ilya-biryukov
|
See https://gcc.godbolt.org/z/jo8Mv6838
```cpp
struct Foo {
template<class T>
void LookupWithID();
};
void test(Foo *f) {
f->LookupWithId<Info>(); // Note: ID is misspelled as Id
}
```
Expected: one lookup error about LookupWithId.
Actual: two duplicate errors `no template named 'LookupWithId' in 'Foo'; did you mean 'LookupWithID'?`
Could this be happening because we parse tentatively twice and report the errors both times?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs