-
-
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
String comparisons by ===
got broken in Julia 1.1.1/1.2
#32842
Comments
P.S: Julia 1.1.0-rc2 works fine. |
A minimal example of the problem seems to be:
|
It seems that there're 2 "Module" stored in distinct memory addresses. The functions seem to maintain its own constants? |
The problem is the same with any wrapper type around a |
However we can store the same(literally) heap-allocated immutable data into a same place. Only mutable literals(like |
@bkamins I did not find a way of triggering the issue with non-String (e.g. non-bitstype immutable). Do you have an example? For shorter reproduction:
The SSA-IR looks fine, but the llvm-IR looks broken. |
@chethega - this is what I have also checked (SSA-IR vs llvm). As far as I remember only |
Probably fixed by #31585. In 1.2. |
Yes, I've just checked it. Thanks! |
Ah, it's be noticed when @PallHaraldsson was testing Py2Jl.jl: JuliaCN/Py2Jl#5 (comment)
I positioned the unexpected behaviour and simplified it to code without package specific APIs:
The text was updated successfully, but these errors were encountered: