Skip to content

Conversation

@jlcrochet
Copy link

Adds two new rules:

  1. _cast_expression_value - A restricted version of expression that excludes the address-of operator (&) as a starting token
  2. _pointer_expression_no_addr - A pointer expression that only allows dereference (*), not address-of (&)

Without these rules, (pVal) && bar is ambiguous. The parser could interpret it as:

  • A cast expression: (pVal) casting &&bar (address of address of bar)
  • A logical AND: (pVal) && bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant