Skip to content

Commit

Permalink
Recognize more unary expression operators that may end template-id
Browse files Browse the repository at this point in the history
  • Loading branch information
i-garrison authored and jonahgraham committed Feb 27, 2023
1 parent b9e712f commit 2d3ab58
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,14 @@ private int endsTemplateIDInBinaryExpression() {
case IToken.tLPAREN: // 'ft<int>(args)' or 'c<1 && 2 > (x+y)'
return AMBIGUOUS_TEMPLATE_ID;

// Start of unary expression
// Can be start of unary expression or binary expression with a template-id
case IToken.tMINUS:
case IToken.tPLUS:
case IToken.tAMPER:
case IToken.tSTAR:
case IToken.tAND:
return AMBIGUOUS_TEMPLATE_ID;

case IToken.tNOT:
case IToken.tBITCOMPLEMENT:
case IToken.tINCR:
Expand Down

0 comments on commit 2d3ab58

Please sign in to comment.