-
Notifications
You must be signed in to change notification settings - Fork 448
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 bug: "expected an instance declaration" #92
Comments
I will change the spec to forbid parsers, controls and packages to be passed as arguments (they can only be passed as constructor arguments). So this program will fail with an error. This should also take care of the problem of the architecture passing parsers as arguments to parsers. I have checked-in two examples that test passing parsers as arguments, testdata/p4_16_*/parser-arg.p4. The examples and fixes will be part of the next pull request. |
Should global variables whose type is a parser, control, or package also be forbidden? |
main is such a global instance. |
Good point :-) |
The following program
crashes with a compiler bug:
The text was updated successfully, but these errors were encountered: