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

value_set<int> is accepted #3346

Closed
apinski-cavium opened this issue May 22, 2022 · 1 comment · Fixed by #3351
Closed

value_set<int> is accepted #3346

apinski-cavium opened this issue May 22, 2022 · 1 comment · Fixed by #3351
Assignees
Labels
bug This behavior is unintended and should be fixed. fixed This topic is considered to be fixed.

Comments

@apinski-cavium
Copy link

No description provided.

@apinski-cavium
Copy link
Author

Whoops, I thought I was doing a search but here is the issue report:
Take:

parser MyParser1(in bit<6> v) {
  value_set<int>(4) myvs;
  state start {
    transition select(v) {
     myvs: accept;
     _: reject;
   }
 }
}

A value_set of int does not make sense and seems like it should be rejected.

@apinski-cavium apinski-cavium changed the title value_set value_set<int> is accepted May 23, 2022
@mihaibudiu mihaibudiu added bug This behavior is unintended and should be fixed. fixed This topic is considered to be fixed. labels May 23, 2022
@mihaibudiu mihaibudiu self-assigned this May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This behavior is unintended and should be fixed. fixed This topic is considered to be fixed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants