digitalmars.D.bugs - [Issue 6396] New: enums + struct initializers == wrong code
- d-bugmail puremagic.com (29/29) Jul 28 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6396
- d-bugmail puremagic.com (11/11) Apr 26 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6396
- d-bugmail puremagic.com (12/12) May 29 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6396
http://d.puremagic.com/issues/show_bug.cgi?id=6396 Summary: enums + struct initializers == wrong code Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: wrong-code Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: dsimcha yahoo.com --- Comment #0 from David Simcha <dsimcha yahoo.com> 2011-07-28 12:40:37 PDT --- struct S { bool b; double d = 3.14159265; int i = 42; } enum S s = {b : true}; void main() { import std.stdio; writeln(s.d); // nan writeln(s.i); // 0 } Changing the enum to immutable fixes this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 28 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6396 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com --- Comment #1 from SomeDude <lovelydear mailmetrash.com> 2012-04-26 09:49:41 PDT --- Still not working on 2.059 Is this even supposed to compile ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 26 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6396 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |DUPLICATE --- Comment #2 from Don <clugdbug yahoo.com.au> 2012-05-29 00:59:48 PDT --- *** This issue has been marked as a duplicate of issue 4967 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 29 2012