Issue |
133720
|
Summary |
[Clang][Regression:20][Modules] Name lookup failed to find hidden friend in non-exported base class
|
Labels |
clang
|
Assignees |
|
Reporter |
MagentaTreehouse
|
m.cppm
```c++
export module m;
struct Base {
template <class T>
friend constexpr auto f(T) { return 0; }
};
export struct A: Base {};
```
main.cpp
```c++
import m;
int main() {
f(A{});
}
```
See https://compiler-explorer.com/z/v4xdnT7eW.
Error since Clang 20:
```console
main.cpp:3:5: error: use of undeclared identifier 'f'
3 | f(A{});
| ^
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs