You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gives the following error when compiled with -vvv:
<omitted>
MidEnd_21_Predication
error: Could not find declaration for cond
error: Could not find declaration for cond
error: Could not find declaration for cond
error: Could not find declaration for cond
error: Could not find declaration for cond
Note: there is no variable cond in my program. My guess is that this is something in the IR.
However, if I do any of the following, the program compiles:
line 76 is changed from: iszero = (key.field1 == 0) ? true : false;
to iszero = (key.field1 == 0);
the program compiles.
Remove line 83 (the repeated keyIsZero(key, done))
The apply body is replaced with the contents of testKey
Why is the attached program rejected? Is there something about the limitations of actions in the spec that I'm missing? Either way, the compiler should print out a more helpful error.
The text was updated successfully, but these errors were encountered:
I cannot reproduce this bug with the most recent version of the compiler.
The program compiles just fine for me.
(However, the generated code is pretty bad.)
I have the following P4-16 program:
test_bug.p4.txt
This gives the following error when compiled with -vvv:
Note: there is no variable
cond
in my program. My guess is that this is something in the IR.However, if I do any of the following, the program compiles:
iszero = (key.field1 == 0) ? true : false;
to
iszero = (key.field1 == 0);
the program compiles.
keyIsZero(key, done)
)testKey
Why is the attached program rejected? Is there something about the limitations of actions in the spec that I'm missing? Either way, the compiler should print out a more helpful error.
The text was updated successfully, but these errors were encountered: