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: visitor returned invalid type Vector<Declaration> for IndexedVector<StatOrDecl> #2289

Closed
fruffy opened this issue Apr 6, 2020 · 0 comments
Assignees
Labels
bug This behavior is unintended and should be fixed. fixed This topic is considered to be fixed.

Comments

@fruffy
Copy link
Collaborator

fruffy commented Apr 6, 2020

The programs are becoming a bit more esoteric now.
In this case using a nested struct inside a function that is called by another function leads to a compiler bug. I tried to reduce the case as much as possible.

nested_structs_and_functions.p4.txt

@mihaibudiu mihaibudiu added the bug This behavior is unintended and should be fixed. label Apr 6, 2020
@mihaibudiu mihaibudiu self-assigned this Apr 6, 2020
mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue Apr 6, 2020
@mihaibudiu mihaibudiu added the fixed This topic is considered to be fixed. label Apr 6, 2020
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. fixed This topic is considered to be fixed.
Projects
None yet
Development

No branches or pull requests

2 participants