Issue |
149008
|
Summary |
[C++][Module] Improve diagnostic 'export declaration can only be used within a module purview'
|
Labels |
c++20,
clang:modules
|
Assignees |
|
Reporter |
yronglin
|
```cpp
module M; // #M
export int b2; // expected-error {{export declaration can only be used within a module purview}}
```
As Michael's suggestion in https://github.com/llvm/llvm-project/pull/148861#discussion_r2208847734, This should say "within the purview of a module interface" for this case, or just "within a module interface" to be less pedantic.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs