August 01, 2010 [Issue 4552] New: Struct initialization results in struct member garbage values | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4552 Summary: Struct initialization results in struct member garbage values Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2010-08-01 10:23:51 PDT --- This is a modified example from the structs page in the d spec: import std.stdio; struct S { int a; int b; int c; int d = 7; } void test(int i) { S q = {2, i}; writeln(q); } void main() { test(4); } This writes S(2, 4, 33686018, 33686018). These look like garbage values to me. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 07, 2010 [Issue 4552] Struct initialization results in struct member garbage values | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=4552 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |DUPLICATE --- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-10-07 07:35:43 PDT --- *** This issue has been marked as a duplicate of issue 2485 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation