8000 Control instantiation parameters are not always treated as constants · Issue #2995 · p4lang/p4c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Control instantiation parameters are not always treated as constants #2995
@vgurevich

Description

@vgurevich

Here is a simple example:

control c()(int bar=16) {
    bit<(bar)> foo;
    apply {
    }
}

Compiling this with p4test produces the following error:

param_test.p4(2): [--Werror=expected] error: bar: expected a constant
    bit<(bar)> foo;
         ^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request is a duplicate.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0