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 crash with ===() #40904

Closed
akosuas opened this issue May 21, 2021 · 2 comments
Closed

Compiler crash with ===() #40904

akosuas opened this issue May 21, 2021 · 2 comments

Comments

@akosuas
Copy link

akosuas commented May 21, 2021

I can get the following on Julia 1.6.1:

julia> foo() = ===(0)
foo (generic function with 1 method)

julia> foo()
Internal error: encountered unexpected error in runtime:
BoundsError(a=Array{Any, (2,)}[
  Main.:(===),
  0], i=(3,))
jl_bounds_error_ints at /buildworker/worker/package_linux64/build/src/rtutils.c:186

The syntax may indeed be invalid, but it doesn't produce a friendly error.

@simeonschaub
Copy link
Member

simeonschaub commented May 21, 2021

Duplicate of #40804

@akosuas
Copy link
Author

akosuas commented May 21, 2021

Thanks!

Edit: Oh wow, they used the exact same example! haha

@simeonschaub simeonschaub marked this as a duplicate of #40804 May 21, 2021
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

2 participants