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
Compiling the following program with the Bmv2 backend,
#include <v1model.p4>
header my_h {
bit<8> tag;
}
struct my_packet {
my_h h;
}
struct my_metadata {
}
parser MyParser(packet_in b, out my_packet p, inout my_metadata m, inout standard_metadata_t s) {
state start {
b.extract(p.h);
transition accept;
}
}
control MyVerifyChecksum(in my_packet hdr, inout my_metadata meta) {
apply { }
}
control MyIngress<H>(inout my_packet p, inout my_metadata m, inout standard_metadata_t s) {
action nop() { }
table t (in H h) {
key = { }
actions = { nop; }
default_action = nop();
}
apply {
H h = 0;
t.apply(h);
}
}
control MyEgress(inout my_packet p, inout my_metadata m, inout standard_metadata_t s) {
apply { }
}
control MyComputeChecksum(inout my_packet p, inout my_metadata m) {
apply { }
}
control MyDeparser(packet_out b, in my_packet p) {
apply { }
}
/* Instantiate */
MyParser() p;
MyVerifyChecksum() vck;
MyIngress() i;
MyEgress() e;
MyComputeChecksum() cck;
MyDeparser() dp;
V1Switch(p, vck, i, e, cck, dp) main;
crashes with an bug:
$ ./build/p4c-bm2-ss --p4-16 -o config.json min.p4
terminate called after throwing an instance of 'Util::CompilerBug'
what(): COMPILER BUG: ../frontends/p4/typeChecking/bindVariables.cpp:8
../frontends/p4/typeChecking/bindVariables.cpp:8: Null type
Aborted (core dumped)
The text was updated successfully, but these errors were encountered:
mihaibudiu
pushed a commit
to mihaibudiu/p4c-clone
that referenced
this issue
Mar 4, 2017
Compiling the following program with the Bmv2 backend,
crashes with an bug:
The text was updated successfully, but these errors were encountered: