File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
regression-tests/test-results Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
- cppfront compiler v0.2.1 Build 8928:1030
2
+ cppfront compiler v0.2.1 Build 8928:1101
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
- "8928:1030 "
1
+ "8928:1101 "
Original file line number Diff line number Diff line change @@ -8312,6 +8312,14 @@ class parser
8312
8312
return {};
8313
8313
}
8314
8314
8315
+ if (id->to_string () == " ..." ) {
8316
+ errors.emplace_back (
8317
+ curr ().position (),
8318
+ " a variadic declaration must have a name - did you forget to write a name before '...'?"
8319
+ );
8320
+ pos = start_pos; // backtrack
8321
+ }
8322
+
8315
8323
auto is_variadic = false ;
8316
8324
if (curr ().type () == lexeme::Ellipsis) {
8317
8325
is_variadic = true ;
You can’t perform that action at this time.
0 commit comments