Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upField access of cast expression: discrepancy between parser-lalr and rustc #28362
Comments
steveklabnik
added
the
A-grammar
label
Sep 28, 2015
This comment has been minimized.
This comment has been minimized.
|
Current output:
|
brson
added
the
T-lang
label
Mar 23, 2017
This comment has been minimized.
This comment has been minimized.
|
Seems clear that parser-lalr is wrong here. |
This comment has been minimized.
This comment has been minimized.
|
However, I can see why it arises. |
brson
added
P-medium
I-wrong
labels
Mar 23, 2017
Mark-Simulacrum
added
C-bug
and removed
I-wrong
labels
Jul 24, 2017
This comment has been minimized.
This comment has been minimized.
|
Triage; is parser-lalr still a thing? is this issue relevant? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rprichard commentedSep 11, 2015
It's not clear to me whether this code is valid syntax. It looks wrong, so maybe it ought to be rejected.
rustcrejects it, butparser-lalraccepts it:It looks like it should parse as
s as (S.f), and that wouldn't parse.parser-lalrparses it as(s as S).f(To test the LALR grammar, build the check-grammar target, then run grammar/parser-lalr -v.)