[Issue 5178] StructLiteral should not be lvalue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 31 15:27:41 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5178


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2011-03-31 15:24:09 PDT ---
I believe the patch is the wrong fix. It is valid for struct literals (and
other temporaries) to be lvalues.

What is not valid is to return a reference to a stack variable.

-- 
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