[Issue 2851] Segfault(expression.c) using C-style struct initializer with too few arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 13 00:00:52 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2851


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




--- Comment #4 from Don <clugdbug at yahoo.com.au>  2009-08-13 00:00:52 PDT ---
Seems like this was just missed in copying from D2 to D1.
Segfaulting in StructLiteralExp::getFieldIndex() in expression.c.

PATCH: 
Just copy int StructLiteralExp::getFieldIndex(Type *type, unsigned offset)
(line 3197) from D2 to D1. (Needs if(elements->dim){ ... } around the for
loop).

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


More information about the Digitalmars-d-bugs mailing list