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 11
2- cppfront compiler v0.2.1 Build 8928:1030
2+ cppfront compiler v0.2.1 Build 8928:1101
33Copyright(c) Herb Sutter All rights reserved
44
55SPDX-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
83128312 return {};
83138313 }
83148314
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+
83158323 auto is_variadic = false ;
83168324 if (curr ().type () == lexeme::Ellipsis) {
83178325 is_variadic = true ;
You can’t perform that action at this time.
0 commit comments