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

Fixes for issues #477 and #478 #483

Merged
merged 2 commits into from
Apr 15, 2017
Merged

Conversation

mihaibudiu
Copy link
Contributor

This fixes issue #477 and #478 but discovers several other bugs in the process.
Issues have been filed for these bugs. Unfortunately this also converts several tests to XFAIL.
An issue has been filed against the spec: p4lang/p4-spec#161; the current checks are quite strict, and so several other test programs have to be modified to pass, including some gtestp4c tests.

In the end the checks are part of the typechecking pass - it was lower overhead than creating a separate pass.

I have also converted more comments to Doxygen.

Copy link
Contributor

@ChrisDodd ChrisDodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a little bit like it should be a separate pass to me, rather than lumped in with TypeInference, but its ok as is.

@mihaibudiu
Copy link
Contributor Author

That's how I wrote it originally, but then I realized it needs fresh types, so it will need to run typechecking again... We could split the type-checking pass into a few smaller passes, notably @cc10512 said he would like to move the compile-time computation to a separate pass too.

@ChrisDodd ChrisDodd merged commit d1c94a7 into p4lang:master Apr 15, 2017
@mihaibudiu mihaibudiu deleted the issue477 branch April 19, 2017 15:59
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.

2 participants