Thread overview |
---|
August 04, 2007 [Issue 1400] New: static array in struct as parameter BROKEN | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1400 Summary: static array in struct as parameter BROKEN Product: DGCC aka GDC Version: 0.23 Platform: Other OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: glue layer AssignedTo: dvdfrdmn@users.sf.net ReportedBy: default_357-line@yahoo.de gentoo-pc ~/d $ cat bug2.d && gdc bug2.d -o bug2 && echo "----" && ./bug2 import std.stdio; void test(float[3] t) { writefln("t is ", t); } struct E { float[3] data; } void main() { E[] es; E e; e.data[]=[5f, 6f, 7f]; es~=e; foreach (ref v; es) test(v.data); } ---- t is [-2.36481e-05,-2.36481e-05,-1.75314] I trust it is clear how completely and utterly fucked this output is. --downs -- |
August 05, 2007 [Issue 1400] static array in struct as parameter BROKEN | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1400 thecybershadow@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow@gmail.com ------- Comment #1 from thecybershadow@gmail.com 2007-08-05 01:26 ------- *** Bug 1402 has been marked as a duplicate of this bug. *** -- |
August 05, 2007 [Issue 1400] static array in struct as parameter BROKEN | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1400 dvdfrdmn@users.sf.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from dvdfrdmn@users.sf.net 2007-08-05 14:32 ------- Fixed in svn r139 -- |
February 25, 2008 [Issue 1400] static array in struct as parameter BROKEN | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1400 ------- Comment #3 from thomas-dloop@kuehne.cn 2008-02-25 05:05 ------- Added to DStress as http://dstress.kuehne.cn/run/f/foreach_39_A.d http://dstress.kuehne.cn/run/f/foreach_39_B.d http://dstress.kuehne.cn/run/f/foreach_39_C.d -- |
Copyright © 1999-2021 by the D Language Foundation