Skip to content

issue example 1 #1

Description

@chenxiang2019

Title: WTF the bug is?

Content:

I find a error:

heavy_hitter.p4(127): warning: -1: negative value with unsigned type
    add_to_field(ipv4.ttl, -1);
                            ^
heavy_hitter.p4(152): warning: csum16: unexpected algorithm
    algorithm : csum16;
                ^^^^^^
error: HashAlgorithm.csum16: Invalid enum tag
heavy_hitter.p4(177): error: hash: Cannot unify Type(HashAlgorithm) to HashAlgorithm
    modify_field_with_hash_based_offset(custom_metadata.hash_val1, 0,
    ^
/usr/local/share/p4c/p4include/v1model.p4(115)
enum HashAlgorithm {
^^^^

How to resolve this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions