workaround Issue 20906 - unnecessary divide-by-zero errors when const… #3130
Conversation
…ant folding short circuits
Thanks for your pull request, @WalterBright! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + druntime#3130" |
Baffling log file errors that have seemingly no connection with this PR. |
The azure failure is an unrelated (it's a phobos bug that rarely manifests inside of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't make sense to me. The only reason to pull this would be to accept the pending changes to inline
, which would mean accepting introducing a regression, which is a big no-no in everyone's book.
And Buildkite shows us that it triggers in a few projects.
Is there a bugzilla for it? Any fix? |
How so? |
Working on it, gonna open a PR soon |
If you fix the bug, we can pull your DMD PR and this workaround becomes useless. |
Why?
I could use some help with that (finding the piece of code that causes it). |
In any case, such an ugly workaround should be restricted to DMD ( |
This can be closed when dlang/dmd#11252 passes. @kinke this function has likely never been inlined, otherwise the failure would have showed up before. |
Just because it wasn't for DMD doesn't mean it wasn't/isn't with LDC - if it isn't clear by now, LDC does not use the DMD AST inliner at all. |
No longer needed. |
…ant folding short circuits
Doesn't look like this bug will be resolved anytime soon, see dlang/dmd#11252
In the meantime, need to move forward with dlang/dmd#11236