Bug 3036 – Number is allowed as struct initializer, but doesn't work

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-05-29T04:47:00Z
Last change time
2015-06-09T01:27:57Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
dfj1esp02

Comments

Comment #0 by dfj1esp02 — 2009-05-29T04:47:15Z
struct S {int x;} int main() { S i=5; writeln(i.x); // prints 0 return 0; }
Comment #1 by clugdbug — 2009-08-07T01:29:07Z
*** This issue has been marked as a duplicate of issue 2469 ***