Skip to content
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

COMPILER BUG: ../frontends/p4/def_use.h:292 #130

Closed
smolkaj opened this issue Nov 3, 2016 · 1 comment
Closed

COMPILER BUG: ../frontends/p4/def_use.h:292 #130

smolkaj opened this issue Nov 3, 2016 · 1 comment

Comments

@smolkaj
Copy link
Member

smolkaj commented Nov 3, 2016

I get the error

terminate called after throwing an instance of 'Util::CompilerBug'
  what():  COMPILER BUG: ../frontends/p4/def_use.h:292
../frontends/p4/def_use.h:292: Null 

when trying to compile the following (minimized) program:

#include <core.p4>
#include <v1model.p4>
typedef standard_metadata_t std_meta_t;
struct H { };
struct M { };

parser ParserI(packet_in b, out H h, inout M m, inout std_meta_t s) {
    state start { transition accept; }
}

control IngressI(inout H hdr, inout M meta, inout std_meta_t std_meta) {
    apply { }
}

control EgressI(inout H hdr, inout M meta, inout std_meta_t std_meta) {

    action a() { }

    table t {
        key = { }
        actions = { a; }
    }

    IngressI() do;
    
    apply {
        switch(t.apply().action_run) {
            a: { 
                return; 
            }
            default: {
                do.apply(hdr, meta, std_meta);
            }
        }
    }
}

control VerifyChecksumI(in H hdr, inout M meta) {
    apply { }
}
control ComputeChecksumI(inout H hdr, inout M meta) {
    apply { }
}
control DeparserI(packet_out b, in H hdr) {
    apply { }
}

V1Switch(ParserI(), VerifyChecksumI(), IngressI(), EgressI(), ComputeChecksumI(),
         DeparserI()) main;
ChrisDodd pushed a commit that referenced this issue Nov 4, 2016
@smolkaj
Copy link
Member Author

smolkaj commented Nov 10, 2016

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant