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

Compiler crash on a particular action call #413

Closed
jafingerhut opened this issue Mar 31, 2017 · 3 comments
Closed

Compiler crash on a particular action call #413

jafingerhut opened this issue Mar 31, 2017 · 3 comments

Comments

@jafingerhut
Copy link
Contributor

Attempting to compile the P4_16 program in the attached file causes a crash in the compiler, one that does not occur if the call to the action foo2() is commented out. The action call looks like it should be legal to me -- is it? Even if not, a compiler crash seems a bit severe.
crash.p4.txt

@mihaibudiu
Copy link
Contributor

This is an important question that the spec should settle: can we call actions from a parser directly?
It looks reasonable - especially since we don't have any other kinds of user-defined functions.
I will file a bug with the spec too.

@jafingerhut
Copy link
Contributor Author

Link to issue on p4-spec repo: p4lang/p4-spec#151

mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue Apr 11, 2017
ChrisDodd pushed a commit that referenced this issue Apr 12, 2017
@jafingerhut
Copy link
Contributor Author

I've verified that after the commits made to fix the crash, the compiler no longer crashes when compiling the sample test program I gave. Closing this issue.

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

No branches or pull requests

2 participants