Skip to content

Commit 4f87037

Browse files
authored
Remove next() on backtrack (#441)
When trying to parse expression like: ```cpp (:() = 0) as t; ``` `parameter_declaration_list()` fail to succed which is expected but skips one symbol ('(') on returning that makes parser fail to process expression succesfully.
1 parent 247ca00 commit 4f87037

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

source/parse.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5610,7 +5610,6 @@ class parser
56105610
else {
56115611
error("invalid parameter list", true, {}, true);
56125612
}
5613-
next();
56145613
return {};
56155614
}
56165615

0 commit comments

Comments
 (0)