Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
July 16, 2007 [Issue 1343] New: Various errors with static initialization of structs and arrays | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1343 Summary: Various errors with static initialization of structs and arrays Product: D Version: 1.018 Platform: All OS/Version: All Status: NEW Keywords: ice-on-valid-code, wrong-code Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: dvdfrdmn@users.sf.net si1.d -- Struct literals do not correctly initialize static arrays in struct declaration. si2.d -- Scalar initializer for static array in struct initializer and struct literals produces too many (and wrong) elements. si3.d -- Structs with zero-length arrays cannot be initialized: dmd: todt.c:146: virtual dt_t* StructInitializer::toDt(): Assertion `sz <= vsz' failed. -- |
July 16, 2007 [Issue 1343] Various errors with static initialization of structs and arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1343 ------- Comment #1 from dvdfrdmn@users.sf.net 2007-07-16 18:37 ------- Created an attachment (id=155) --> (http://d.puremagic.com/issues/attachment.cgi?id=155&action=view) Test Case 1 -- |
July 16, 2007 [Issue 1343] Various errors with static initialization of structs and arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1343 ------- Comment #2 from dvdfrdmn@users.sf.net 2007-07-16 18:38 ------- Created an attachment (id=156) --> (http://d.puremagic.com/issues/attachment.cgi?id=156&action=view) Test Case 2 -- |
July 16, 2007 [Issue 1343] Various errors with static initialization of structs and arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1343 ------- Comment #3 from dvdfrdmn@users.sf.net 2007-07-16 18:39 ------- Created an attachment (id=157) --> (http://d.puremagic.com/issues/attachment.cgi?id=157&action=view) Test Case 3 -- |
June 21, 2009 [Issue 1343] Various errors with static initialization of structs and arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1343 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2009-06-20 21:37:23 PDT --- si3.d: although the compiler shouldn't issue an assert, a zero length array should have a 0 length initializer. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 09, 2009 [Issue 1343] Various errors with static initialization of structs and arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1343 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Walter Bright <bugzilla@digitalmars.com> 2009-07-09 02:45:26 PDT --- Fixed dmd 1.046 and 2.031 -- 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