-
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
p4c-bm2-ss crash when control instantiated but not apply'd #414
Comments
The compiler front-end used to delete such dead code, but now it's leaving it in the program. |
I have tested the P4 program crash2.p4 causing the crash before this fix was committed: 52c5e1c No crash after the commit, neither with p4test nor p4c-bm2-ss -- only a correct warning about an unused instance. Closing this issue. |
In the attached P4_16 program, search for comment containing XXX. A control block instantiates an earlier control block. If it also calls apply() method on it, then p4c-bm2-ss compiles without errors.
If it does not also call apply() method on it, p4c-bm2-ss crashes.
crash2.p4.txt
The text was updated successfully, but these errors were encountered: