[Issue 9375] wrong code when assigning to ref in CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 23 04:15:23 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=9375
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-23 23:15:21 EST ---
The return exp is interpreted with ctfeNeedsLvalue, but either I don't
understand what that means or there is a bug, because it ends up with '[]'
(what you'd expect from a non-ref return)
This gets assigned to, but it doesn't matter. The original [[]] is unchanged.
Changing ReturnStatement to ask for ctfeNeedsLvalueRef breaks other code.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list