| Issue |
61427
|
| Summary |
[C++20] [Modules] The entity with internal linkage shouldn't be accessed in other TU even if they are in the same module
|
| Labels |
clang:modules
|
| Assignees |
|
| Reporter |
ChuanqiXu9
|
Reproducer:
```
export module m:a;
static int a = 32;
```
```
export module m:b;
import :a;
int b() {
return a;
}
```
Currently the reproducer is accepted. But we expect the compiler to reject it and saying that the partition b can't access the static variable 'a' in partition a.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs