digitalmars.D.bugs - [Issue 14395] New: default value collapsed (dmd2.067)
- via Digitalmars-d-bugs (39/39) Apr 02 2015 https://issues.dlang.org/show_bug.cgi?id=14395
https://issues.dlang.org/show_bug.cgi?id=14395 Issue ID: 14395 Summary: default value collapsed (dmd2.067) Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: regression Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: coz.d.lang gmail.com import std.stdio; struct V2u { union { uint[2] m; struct { uint x; uint y; } } this(uint[2] ar ...) { m[] = ar[]; } } void print(in V2u size = V2u(7, 8)) { writefln("size = %s, %s (%s, %s)", size.x, size.y, size.m[0], size.m[1]); } void main() { print(); print(V2u(11, 22)); } // output (dmd2.065) // size = 7, 8 (7, 8) // size = 11, 22 (11, 22) // output (dmd2.067) // size = 4313838, 4294967295 (4313838, 4294967295) // size = 11, 22 (11, 22) --
Apr 02 2015