-
-
Notifications
You must be signed in to change notification settings - Fork 744
LLVM backend panic when comparing array of strings with empty string literal #4873
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
Comments
ok , let me check on that |
This issue has been solved: #4876 |
This comment has been minimized.
This comment has been minimized.
@gingerBill should this error in the frontend or be allowed and handled in the backend? |
I mean this comparison works fine with a non empty string, so this should be allowed right? Seems to be an issue with lb_emit_comp_against_nil here backtrace
|
Ah I see, then it should be allowed and handled yep. |
Context
Current Behavior
src/llvm_backend_expr.cpp(3195): Panic: Unknown handled type: [4]string -> [4]string
This does not happen when using anything else than an empty string literal
Failure Information (for bugs)
Relevant gdb output:
Steps to Reproduce
Use the above code, and attempt to build it with
odin build main.odin -file
The text was updated successfully, but these errors were encountered: