-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
===(), ===(x) and typeassert() cause internal error when compiled #40804
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:optimizer
Optimization passes (mostly in base/compiler/ssair/)
Comments
JeffBezanson
added
the
compiler:optimizer
Optimization passes (mostly in base/compiler/ssair/)
label
May 17, 2021
vtjnash
added a commit
that referenced
this issue
Jun 1, 2021
vtjnash
added a commit
that referenced
this issue
Jun 2, 2021
KristofferC
pushed a commit
that referenced
this issue
Jun 4, 2021
shirodkara
pushed a commit
to shirodkara/julia
that referenced
this issue
Jun 9, 2021
johanmon
pushed a commit
to johanmon/julia
that referenced
this issue
Jul 5, 2021
staticfloat
pushed a commit
that referenced
this issue
Dec 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:optimizer
Optimization passes (mostly in base/compiler/ssair/)
This is a very minor issue since these three forms are supposed to cause an explicit error anyway, but I guess it should not cause an internal one.
The same happens with
foo(x) = ===(x)
but there is no issue when===
has too many arguments. I initially found this with===
but since it looked like a problem specific to builtins, I also checked the other ones (from the list of the docs here) and found thattypeassert()
has the same issue, whiletypeassert(x)
does not.I checked for this on master (1.7.0-DEV.1089, commit d6c092d). The issue is old since it is already present in julia 1.0.0. Incidentally, at the time there were similar internal errors for
getfield
,setfield!
and_apply
but those seem to have been resolved in between.It might be good to take it into account when doing a PR for #36163, I have not checked whether #36759 solves it for
===()
.The text was updated successfully, but these errors were encountered: