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
#include <v1model.p4>
header h_t {
bit<8> f;
}
struct my_packet {
h_t h;
}
struct my_metadata {
}
parser MyParser(packet_in b, out my_packet p, inout my_metadata m, inout standard_metadata_t s) {
state start {
transition accept;
}
}
control MyVerifyChecksum(in my_packet hdr, inout my_metadata meta) {
apply { }
}
control C() {
apply {}
}
C() c;
control MyIngress(inout my_packet p, inout my_metadata m, inout standard_metadata_t s) {
apply { c.apply(); }
}
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;
using the Bmv2 backend,
p4c-bm2-ss --p4-16 min.p4
crashes with a compiler bug:
terminate called after throwing an instance of 'Util::CompilerBug'
what(): COMPILER BUG: ../midend/inlining.h:154
/home/vagrant/min.p4(31): Could not locate instance C c() invoked by c.apply();
C() c;
^
/home/vagrant/min.p4(34)
apply { c.apply(); }
^^^^^^^^^
Aborted (core dumped)
The text was updated successfully, but these errors were encountered:
Compiling the following program
using the Bmv2 backend,
crashes with a compiler bug:
The text was updated successfully, but these errors were encountered: