File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
regression-tests/test-results Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
- cppfront compiler v0.3.0 Build 9104:1031
2
+ cppfront compiler v0.3.0 Build 9104:1043
3
3
Copyright(c) Herb Sutter All rights reserved
4
4
5
5
SPDX-License-Identifier: CC-BY-NC-ND-4.0
Original file line number Diff line number Diff line change 1
- "9104:1031 "
1
+ "9104:1043 "
Original file line number Diff line number Diff line change @@ -7232,7 +7232,7 @@ class parser
7232
7232
7233
7233
7234
7234
// G using-statement:
7235
- // G 'using' id-expression ';'
7235
+ // G 'using' qualified-id ';'
7236
7236
// G 'using' 'namespace' id-expression ';'
7237
7237
// G
7238
7238
auto using_statement ()
@@ -7256,6 +7256,10 @@ class parser
7256
7256
error (std::string{" expected valid id-expression after 'using" } + (n->for_namespace ? " namespace" : " " ) + " '" );
7257
7257
return {};
7258
7258
}
7259
+ if (!n->for_namespace && !id->is_qualified ()) {
7260
+ error (" 'using' for a specific name (not 'using namespace') must specify a qualified name" , false );
7261
+ return {};
7262
+ }
7259
7263
7260
7264
n->id = std::move (id);
7261
7265
You can’t perform that action at this time.
0 commit comments