https://bugs.llvm.org/show_bug.cgi?id=52281
Bug ID: 52281
Summary: Non-exported aliased type used through exported type
alias is not reachable
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Keywords: compile-fail
Severity: enhancement
Priority: P
Component: C++2a
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
See https://godbolt.org/z/qzd1aaqP3
mod.cpp:
```C++
export module mod;
struct t { };
export using u = t;
```
test.cpp:
```C++
import mod;
int main() {
u v{};
}
```
Output:
```
test.cpp:3:5: error: definition of 't' must be imported from module 'mod'
before it is required
u v{};
^
mod.cpp:2:8: note: definition here is not reachable
struct t { };
^
```
With templates: https://godbolt.org/z/81f3ocjfW.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs