| 1 |
// PR c++/114683 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
// { dg-additional-options "-fmodules-ts" } |
| 4 |
|
| 5 |
import M; |
| 6 |
int main() { |
| 7 |
auto y = bar::y; |
| 8 |
|
| 9 |
// This should not be made visible. |
| 10 |
auto z = foo::a::z; // { dg-error "not been declared" } |
| 11 |
} |