digitalmars.D.bugs - [Issue 12438] New: Wrong code for result of assignment to `ref`/`out` struct parameter
- d-bugmail puremagic.com (31/31) Mar 22 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12438
https://d.puremagic.com/issues/show_bug.cgi?id=12438 Summary: Wrong code for result of assignment to `ref`/`out` struct parameter Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: wrong-code Severity: critical Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: verylonglogin.reg gmail.com 12:30:40 MSK --- This code should run fine: --- struct S { int i; } void f(ref S s1) { assert((s1 = S()) == S()); // fails } void main() { S s1; f(s1); } --- -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 22 2014