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

Duplicate declaration error when invoking action from control multiple times #323

Closed
antoninbas opened this issue Feb 22, 2017 · 1 comment
Labels
bug This behavior is unintended and should be fixed.

Comments

@antoninbas
Copy link
Member

The attached P4_16 program gives the following error in the frontend:

dup.p4(50): error: v: Duplicates declaration v
    action my_a(bit<32> v) { h.h.f = v; }
                        ^
dup.p4(50)
    action my_a(bit<32> v) { h.h.f = v; }

but I believe this is a valid program.

dup.p4.txt

@antoninbas antoninbas added the bug This behavior is unintended and should be fixed. label Feb 22, 2017
mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue Feb 23, 2017
mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue Feb 23, 2017
ChrisDodd pushed a commit that referenced this issue Feb 24, 2017
@antoninbas
Copy link
Member Author

Confirming that this was closed by #327 and closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This behavior is unintended and should be fixed.
Projects
None yet
Development

No branches or pull requests

1 participant