Closed rmiguelc closed 7 years ago
I cannot reproduce this issue with the latest version of the compiler. The error I get is:
issue453.p4(25):syntax error, unexpected '(', expecting '{'
table testtable(
^
error: 1 errors encountered, aborting compilation
So this program does not even parse.
I previously mentioned this on a P4-dev-lists topic: http://lists.p4.org/pipermail/p4-dev_lists.p4.org/2017-March/000858.html
Mihai Budiu disclosed that this was intentional, here. As it turns out, the problem with my code was not the
.hit
attribute, but tables having parameters. This has been removed from the language and the compiler has already been changed accordingly, but is still printing the bug in epigraph.Here is the complete P4 code I used on the sandbox test.
Compiling with
./p4test --p4v 16
or./p4c-bm2-ss --p4v 16
yields the following:(p4c-bm-ss also outputs a Segmentation Fault)