File tree Expand file tree Collapse file tree 8 files changed +12
-12
lines changed
dcl.dcl/dcl.module/dcl.module.interface Expand file tree Collapse file tree 8 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -12368,7 +12368,7 @@ def err_export_using_internal : Error<
12368
12368
"using declaration referring to %1 with %select{internal|module|unknown}0 "
12369
12369
"linkage cannot be exported">;
12370
12370
def err_export_not_in_module_interface : Error<
12371
- "export declaration can only be used within a module purview ">;
12371
+ "export declaration can only be used within a module interface ">;
12372
12372
def err_export_inline_not_defined : Error<
12373
12373
"inline function not defined%select{| before the private module fragment}0">;
12374
12374
def err_export_partition_impl : Error<
Original file line number Diff line number Diff line change 9
9
namespace cwg820 { // cwg820: 2.7
10
10
export template <class T > struct B {};
11
11
// cxx98-17-warning@-1 {{exported templates are unsupported}}
12
- // since-cxx20-error@-2 {{export declaration can only be used within a module purview }}
12
+ // since-cxx20-error@-2 {{export declaration can only be used within a module interface }}
13
13
export template <typename T> void f () {}
14
14
// cxx98-17-warning@-1 {{exported templates are unsupported}}
15
- // since-cxx20-error@-2 {{export declaration can only be used within a module purview }}
15
+ // since-cxx20-error@-2 {{export declaration can only be used within a module interface }}
16
16
} // namespace cwg820
17
17
18
18
namespace cwg873 { // cwg873: 3.0
Original file line number Diff line number Diff line change 9
9
10
10
// --- ExportDeclNotInModulePurview.cppm
11
11
// expected-error@* {{missing 'export module' declaration in module interface unit}}
12
- export int b; // expected-error {{export declaration can only be used within a module purview }}
12
+ export int b; // expected-error {{export declaration can only be used within a module interface }}
13
13
14
14
// --- A.cppm
15
15
// expected-no-diagnostics
@@ -18,7 +18,7 @@ export int a;
18
18
19
19
// --- AddExport.cppm
20
20
module A; // #module-decl
21
- export int b; // expected-error {{export declaration can only be used within a module purview }}
21
+ export int b; // expected-error {{export declaration can only be used within a module interface }}
22
22
// expected-note@#module-decl {{add 'export' here}}
23
23
24
24
// --- AddExport2.cppm
Original file line number Diff line number Diff line change 7
7
8
8
// --- errors.cpp
9
9
module ;
10
- export int a; // expected-error {{export declaration can only be used within a module purview }}
10
+ export int a; // expected-error {{export declaration can only be used within a module interface }}
11
11
export module M;
12
12
export int b; // #1
13
13
namespace N {
@@ -37,8 +37,8 @@ namespace N {
37
37
// --- impl.cpp
38
38
module M; // #M
39
39
40
- export int b2; // expected-error {{export declaration can only be used within a module purview }}
40
+ export int b2; // expected-error {{export declaration can only be used within a module interface }}
41
41
namespace N {
42
- export int c2; // expected-error {{export declaration can only be used within a module purview }}
42
+ export int c2; // expected-error {{export declaration can only be used within a module interface }}
43
43
}
44
44
// expected-note@#M 2+{{add 'export'}}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export int x;
14
14
module ;
15
15
16
16
#include " std-10-2-ex1.h"
17
- // [email protected] :* {{export declaration can only be used within a module purview }}
17
+ // [email protected] :* {{export declaration can only be used within a module interface }}
18
18
19
19
export module M1;
20
20
export namespace {} // expected-error {{anonymous namespaces cannot be exported}}
Original file line number Diff line number Diff line change 11
11
export module dummy;
12
12
13
13
// --- test.cpp
14
- export import dummy; // expected-error {{export declaration can only be used within a module purview }}
14
+ export import dummy; // expected-error {{export declaration can only be used within a module interface }}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ module;
110
110
111
111
module AOK1;
112
112
113
- export import C; // expected-error {{export declaration can only be used within a module purview }}
113
+ export import C; // expected-error {{export declaration can only be used within a module interface }}
114
114
115
115
int theAnswer () { return 42 ; }
116
116
Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -std=c++20 %s -fsyntax-only -verify
2
- export struct Unit { // expected-error {{export declaration can only be used within a module purview }}
2
+ export struct Unit { // expected-error {{export declaration can only be used within a module interface }}
3
3
bool operator <(const Unit &);
4
4
};
You can’t perform that action at this time.
0 commit comments