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

internal compilation error #828

Open
vbgl opened this issue Jun 7, 2024 · 0 comments
Open

internal compilation error #828

vbgl opened this issue Jun 7, 2024 · 0 comments
Labels

Comments

@vbgl
Copy link
Member

vbgl commented Jun 7, 2024

The following program should be rejected with a nice error message (which one?); it currently crashes.

inline fn aux(reg u8 x) -> inline int {
  inline int r;
  if x == 0 { r = 0; }
  return r;
}

export fn main() -> reg u8 {
  inline int t;
  reg u8 f;
  t = aux(0);
  f = t;
  return f;
}

"bug_828.jazz", line 3 (14-20)
from line 10 (2-13):
internal compilation error:
AT_inline flag remains in instruction:
r = 0; /* int:i */
Please report …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant