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

Exception when trying to invoke apply() method of control instantiated at top level #436

Closed
jafingerhut opened this issue Apr 5, 2017 · 1 comment
Labels
fixed This topic is considered to be fixed.

Comments

@jafingerhut
Copy link
Contributor

I can instantiate a control A within control B, then invoke A.apply() within control B's apply block. However, if I change it to instantiate A at the top level, the compiler crashes. Not sure if this is intended to be a legal P4_16 program or not.

Look for occurrences of my_cBar in attached program.
method-call-on-top-level-control-inst.p4.txt

@mihaibudiu
Copy link
Contributor

I think this is a duplicate of #388.
But this issue has a much better title.
Both of these are related to a spec issue: p4lang/p4-spec#150
So we can't fix this one until we settle the problem in the spec.

@mihaibudiu mihaibudiu added the fixed This topic is considered to be fixed. label May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed This topic is considered to be fixed.
Projects
None yet
Development

No branches or pull requests

2 participants