Thread overview |
---|
February 23, 2007 [Issue 999] New: Problem with auto and nested array literals | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=999 Summary: Problem with auto and nested array literals Product: D Version: 1.007 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: wbaxter@gmail.com There seems to be a problem with automatic type deduction of nested array literals. import std.stdio; // This one compiles, (but causes runtime access violation if used) auto gfoo = [[1.0],[2.0]]; void main() { writefln(typeid(typeof(gfoo))); // --> double[1][2], ok // this one doesn't compile auto foo = [[1.0],[2.0]]; /* Error: cannot implicitly convert expression ([[1],[2]]) of type double[][2] to double */ } -- |
February 26, 2007 [Issue 999] Problem with auto and nested array literals | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=999 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Windows |All ------- Comment #1 from thomas-dloop@kuehne.cn 2007-02-26 05:36 ------- Added to DStress as http://dstress.kuehne.cn/run/a/auto_19_A.d http://dstress.kuehne.cn/run/a/auto_19_B.d -- |
September 27, 2007 [Issue 999] Problem with auto and nested array literals | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=999 ------- Comment #2 from smjg@iname.com 2007-09-27 16:36 ------- *** Bug 919 has been marked as a duplicate of this bug. *** -- |
August 12, 2009 [Issue 999] Problem with auto and nested array literals | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=999 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |FIXED --- Comment #3 from Don <clugdbug@yahoo.com.au> 2009-08-12 06:37:21 PDT --- This, the Dstress cases, and the cases in 919, all work in DMD1.045 and 2.030. (Tested both Windows + Linux). -- 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