Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser rejects streaming operators that use the "with" clause #2167

Open
fpgauserdude opened this issue Apr 19, 2024 · 0 comments
Open

Parser rejects streaming operators that use the "with" clause #2167

fpgauserdude opened this issue Apr 19, 2024 · 0 comments
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).

Comments

@fpgauserdude
Copy link

Describe the bug

Rejects valid syntax.

To Reproduce

byte result[$];
result = {>>{bytes with [start_indx: end_indx]}};

Include any options used.

Actual behavior:

Syntax error "with"

Expected behavior

See LRM 1800-2017 section 11.4.14 Streaming operators (pack/unpack). This is valid syntax that commercial tools have no problem with.

@fpgauserdude fpgauserdude added the rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017). label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).
Projects
None yet
Development

No branches or pull requests

1 participant