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

Allow unification between serenum and underlying type #3341

Merged
merged 2 commits into from
May 25, 2022

Conversation

mihaibudiu
Copy link
Contributor

Signed-off-by: Mihai Budiu [email protected]
Fixes #3333

@mihaibudiu mihaibudiu requested a review from jnfoster May 19, 2022 18:57
Signed-off-by: Mihai Budiu <[email protected]>
@mihaibudiu mihaibudiu requested a review from fruffy May 24, 2022 20:12
@@ -0,0 +1,16 @@
enum bit<8> myenum {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think a problem with these tests is that they are all optimized away in the front end. So you can not actually see how these programs are transformed or how the mid end passes handle this. Even though most of these changes just check for errors.

@mihaibudiu mihaibudiu merged commit 957d5d9 into p4lang:main May 25, 2022
@mihaibudiu mihaibudiu deleted the issue3333 branch May 25, 2022 00:45
github-sajan pushed a commit to github-sajan/p4c that referenced this pull request May 26, 2022
* Allow unification between serenum and underlying type

Signed-off-by: Mihai Budiu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants