Thread overview |
---|
July 15, 2007 [Issue 1342] New: struct const not accepted as initializer for another struct | ||||
---|---|---|---|---|
| ||||
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. -- |
July 23, 2007 [Issue 1342] struct const not accepted as initializer for another struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 -- |
September 15, 2007 [Issue 1342] struct const not accepted as initializer for another struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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. -- |
September 29, 2007 [Issue 1342] struct const not accepted as initializer for another struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | 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 -- |
Copyright © 1999-2021 by the D Language Foundation