Account for parse stack merges when shifting
Previously, when the parse stack was split into 3 or more heads, it was possible for head 3 to be accidentally skipped if head 2 merged with head 1.
This commit is contained in:
parent
a0eca388e8
commit
30b6530fd1
3 changed files with 57 additions and 16 deletions
4
spec/fixtures/corpus/cpp/statements.txt
vendored
4
spec/fixtures/corpus/cpp/statements.txt
vendored
|
|
@ -36,7 +36,7 @@ template function / relational expression ambiguities
|
|||
|
||||
int main() {
|
||||
someVariable < someValue > 0.0;
|
||||
someTemplate<SomeType>(y);
|
||||
someTemplate<SomeType>(0, 0);
|
||||
}
|
||||
|
||||
---
|
||||
|
|
@ -52,7 +52,7 @@ int main() {
|
|||
(expression_statement
|
||||
(call_expression
|
||||
(template_call (identifier) (type_id (type_specifier (identifier))))
|
||||
(identifier)))))))
|
||||
(number) (number)))))))
|
||||
|
||||
==================================================
|
||||
template class / relational expression ambiguities
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue