-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Wrong evaluation order for binary operators #1327
Comments
Compile-time only, right? |
I don't think so. |
It's not compile-time only. Also, from this it seems like we codegen the arguments in LTR order, but fail to immediately load from the
That's as far as I got while waiting on the airport; probably won't have time to follow up on it anytime soon. |
I think the problem is that we're doing |
Well maybe using a specialization of |
@kinke I think your proposed fix is correct. I mean this one:
|
So we've just had 2 |
To fix this and related issues, I think what we need to do is to go through the code base and make sure that Anybody? ;P |
I was thinking about introducing a Edit: |
Fixes issue ldc-developers#1327 by loading immediately from lvalues resulting from left- and right-hand sides.
Fixes issue ldc-developers#1327 by loading immediately from lvalues resulting from left- and right-hand sides.
Fixes issue ldc-developers#1327 by loading immediately from lvalues resulting from left- and right-hand sides.
Fixes issue ldc-developers#1327 by loading immediately from lvalues resulting from left- and right-hand sides.
Continue with DValue refactoring and fix issue #1327
This code outputs:
21
11
Instead of:
20
11
With lcd 1.0.0 alpha
The text was updated successfully, but these errors were encountered: