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

[bmv2] Could not find type for <Mux> #232

Closed
vikramnathan opened this issue Jan 14, 2017 · 2 comments
Closed

[bmv2] Could not find type for <Mux> #232

vikramnathan opened this issue Jan 14, 2017 · 2 comments
Assignees
Labels
fixed This topic is considered to be fixed.

Comments

@vikramnathan
Copy link

Note: I think this is a different bug than #216 since no bit slices are used here.

The following program:
test_bug2.p4.txt

gives me this error:

terminate called after throwing an instance of 'Util::CompilerBug'
  what():  COMPILER BUG: ../frontends/p4/typeMap.cpp:82
Could not find type for <Mux>(90708)

Aborted (core dumped)

What does this error mean? Is it a compiler bug or program issue?

Some notes:

  1. Removing the conditional on line 98 (but keeping the body) seems to compile.
  2. If line 97 is replaced with bool ok = same;, the code gives an Unexpected JSON error, likely the same as [bmv2] Unexpected JSON when using nested actions #231 .
  3. If the Key instances are replaced with primitive types (e.g., bit<8>), the code compiles.
@mihaibudiu
Copy link
Contributor

If you see COMPILER BUG it means this is a bug. You should not expect a very good error message from a compiler bug - something we didn't expect has happened.

mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue Jan 15, 2017
@ChrisDodd ChrisDodd added the fixed This topic is considered to be fixed. label Feb 2, 2017
@vikramnathan
Copy link
Author

seems to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed This topic is considered to be fixed.
Projects
None yet
Development

No branches or pull requests

3 participants