[Issue 3198] wrong initializer for structs arrays

2014-04-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3198

Walter Bright  changed:

   What|Removed |Added

Version|1.046   |D1

--


[Issue 3198] wrong initializer for structs arrays

2011-02-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3198


Don  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED


--- Comment #4 from Don  2011-02-06 13:48:37 PST ---
Fixed
https://github.com/D-Programming-Language/dmd/commit/0c7bd71609735814f5bb410f903e454643ac260f

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3198] wrong initializer for structs arrays

2011-01-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3198



--- Comment #3 from Don  2011-01-21 13:42:39 PST ---
The patch for bug 1914 fixes this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3198] wrong initializer for structs arrays

2011-01-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3198


Brad Roberts  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||bra...@puremagic.com
 Resolution|WONTFIX |


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3198] wrong initializer for structs arrays

2011-01-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3198


nfx...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3198] wrong initializer for structs arrays

2009-12-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3198



--- Comment #2 from Don  2009-12-30 14:56:32 PST ---
Or else, create a new version of TypeStruct::toDtElem, which doesn't have the
special-case for structs members, and call it from
StructDeclaration::toDt() and ClassDeclaration::toDt2()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3198] wrong initializer for structs arrays

2009-12-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3198


Don  changed:

   What|Removed |Added

   Keywords||patch
 CC||clugd...@yahoo.com.au


--- Comment #1 from Don  2009-12-30 14:35:46 PST ---
The bug clearly lies in todt.c, inside 
dt_t **TypeSArray::toDtElem(dt_t **pdt, Expression *e).

If it's an array of structs, (ie, tbn->ty == Tstruct), then the 'e' value is
completely ignored!! This is certainly wrong.


Changing the two places where the check is:
if (tbn->ty == Tstruct)
into:
if (tbn != e->type && tbn->ty == Tstruct)

allows the test case to pass.
But that may not be the correct criterion to use.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---