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 assertion failure when putting or_break in loop condition #3586

Closed
FrancisTheCat opened this issue May 13, 2024 · 0 comments
Closed

Comments

@FrancisTheCat
Copy link
Contributor

Context

  • Operating System & Odin Version:
    Windows 11
  • Please paste odin report output:
    Odin: dev-2024-05:1b593fc1c
    OS: Windows 11 Home Basic (version: 23H2), build 22631.3447
    CPU: Intel(R) Core(TM) i7-9750HF CPU @ 2.60GHz
    RAM: 16304 MiB
    Backend: LLVM 17.0.1

Expected Behavior

An error indicating that I cant put a break out of the loop im defining in the condition.

Current Behavior

An assertion failure on compilation:

C:\Dev\odinc\src\llvm_backend_expr.cpp(3426): Assertion Failure: `block != nullptr`

Steps to Reproduce

m: Maybe(int)
test: for b := m.? or_break test; true; {
}
test2: if b := m.? or_break test2; true {
}
odin build .
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