Skip to content

Internal compiler error when matching an undeclared type #785

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

Open
wlott opened this issue Apr 26, 2025 · 0 comments
Open

Internal compiler error when matching an undeclared type #785

wlott opened this issue Apr 26, 2025 · 0 comments

Comments

@wlott
Copy link

wlott commented Apr 26, 2025

When using the match pattern = expr; form and the pattern references a undefined/unknown type:

package MatchInternalError;
module mkMatchInternalError(Empty);
   match UndeclaredType { next_pc: .next_pc, rd: .rd, u_imm20: .u_imm20, op: .op } = ?;
endmodule
endpackage

bsc fails with the following error message:

Internal Bluespec Compiler Error:
Please report this failure to the BSC developers, by opening a ticket
in the issue database: https://github.com/B-Lang-org/bsc/issues
The following internal error message should be included in your
correspondence along with any other relevant details:
Bluespec Compiler, version 2025.01 (build a798d8a9)
getTInfo: UndeclaredType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant