Skip to content

Unexpected call bug when invoking action call #5437

@jhavrane

Description

@jhavrane

Program

#include <core.p4>

control MAPipe();
package SimpleArch(MAPipe p);

control MyMAPipe() {
    action a0() {}
    table t0 { actions = { a0; } default_action = a0()(); }
    apply {
        t0.apply();
    }
}

SimpleArch(MyMAPipe()) main;

Log

Compiler bug triggered, please report this error:
exception type: P4::Util::CompilerBug
error: In file: ./p4c/frontends/p4/typeChecking/typeCheckExpr.cpp:1813
Compiler Bug: p4c/testdata/p4_16_errors/issuex.p4(8): a0();: unexpected call
    table t0 { actions = { a0; } default_action = a0()(); }
                                                  ^^^^

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions