-
-
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
remove string("a", 'b')
regression. This shouldn't work
#50891
remove string("a", 'b')
regression. This shouldn't work
#50891
Conversation
Just a guess, but this reads like removing the type annotation leads to better specialization due to the |
Pretty sure this is expected behavior, see: https://docs.julialang.org/en/v1/manual/performance-tips/#Be-aware-of-when-Julia-avoids-specializing
|
But then the change here ought to not make a difference 🤔 |
It's weird though, if I define a function like |
|
Should probably tweak the commit message. There should be a chance to understand the change by reading just the commit message. |
@vtjnash Shouldn't we root-cause this? Seems like a bad bug somewhere. This function doesn't even have multiple methods. |
I'll try and see if it's at least bisectable, not the regression here but the weird behaviour we are seeing. |
#50929 replaces this (assuming it's backportable) |
Fixes #50458, #49249 but I have no idea why.
Before:
After:
Can anyone explain this? It feels like a compiler bug to me.