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: Unexpected type <Type_Name> for nested headers #2290

Closed
fruffy opened this issue Apr 6, 2020 · 0 comments
Closed

Compiler Bug: Unexpected type <Type_Name> for nested headers #2290

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

Declaring a header that has another header as member leads to this compiler bug. While this is not allowed in the frontend it still seems to cause a compiler bug.

nested_header.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 7, 2020
@mihaibudiu mihaibudiu added the fixed This topic is considered to be fixed. label Apr 7, 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