[Issue 9069] struct literals are treated as lvalues
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 24 03:04:43 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9069
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-11-24 03:04:42 PST ---
I think this is the pull that should have fixed this:
http://d.puremagic.com/issues/show_bug.cgi?id=5889
Also since a recent pull this (correctly) no longer compiles:
struct S { }
void test(ref S s = S()) { }
So I think we've definitely agreed that literals are r-values. Maybe the OP
code compiles because of an oversight or wrong revert?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list