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:
Max Brunsfeld 2015-11-05 21:21:15 -08:00
parent a0eca388e8
commit 30b6530fd1
3 changed files with 57 additions and 16 deletions

View file

@ -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