digitalmars.D.bugs - [Issue 1342] New: struct const not accepted as initializer for another struct
- d-bugmail puremagic.com (26/26) Jul 14 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1342
- d-bugmail puremagic.com (5/5) Jul 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1342
- d-bugmail puremagic.com (9/9) Sep 15 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1342
- d-bugmail puremagic.com (4/4) Sep 28 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1342
http://d.puremagic.com/issues/show_bug.cgi?id=1342 Summary: struct const not accepted as initializer for another struct Product: D Version: 2.002 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: minor Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: torhu yahoo.com --- struct S { int value; } const S s = { 5 }; const S t = s; // ok S u = s; // line 9, fails --- //newbug.d(9): Error: non-constant expression cast(S)s Making s invariant doesn't help. --
Jul 14 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1342 ------- Comment #1 from thomas-dloop kuehne.cn 2007-07-23 14:56 ------- test case http://dstress.kuehne.cn/run/const_15.d --
Jul 23 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1342 torhu yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from torhu yahoo.com 2007-09-15 09:08 ------- Fixed dmd 2.004. Both my test case and the DStress test case works now. --
Sep 15 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1342 ------- Comment #3 from bugzilla digitalmars.com 2007-09-28 22:07 ------- Fixed dmd 2.004 --
Sep 28 2007