Bug 3216 – Type-unsafe struct initializing

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-07-30T07:21:00Z
Last change time
2015-06-09T01:28:05Z
Assigned to
nobody
Creator
rayerd.wiz

Comments

Comment #0 by rayerd.wiz — 2009-07-30T07:21:41Z
import std.stdio; struct X { int a; } struct Y { string b; } void main() { Y v = X(10000); // type-unsafe writeln(v.b); }
Comment #1 by jarrett.billingsley — 2009-07-30T08:42:40Z
Yeah, I made a duplicate of this one too. *** This issue has been marked as a duplicate of issue 2469 ***