D.gnu - [Issue 1400] New: static array in struct as parameter BROKEN
- d-bugmail puremagic.com (23/23) Aug 04 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1400
- d-bugmail puremagic.com (8/8) Aug 04 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1400
- d-bugmail puremagic.com (9/9) Aug 05 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1400
- d-bugmail puremagic.com (7/7) Feb 25 2008 http://d.puremagic.com/issues/show_bug.cgi?id=1400
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 --
Aug 04 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1400 thecybershadow gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow gmail.com *** Bug 1402 has been marked as a duplicate of this bug. *** --
Aug 04 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1400 dvdfrdmn users.sf.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed in svn r139 --
Aug 05 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1400 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 --
Feb 25 2008