digitalmars.D.bugs - [Issue 9428] New: Wrong array append
- d-bugmail puremagic.com (33/33) Jan 30 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9428
- d-bugmail puremagic.com (11/11) Jan 31 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9428
- d-bugmail puremagic.com (14/14) Jan 31 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9428
- d-bugmail puremagic.com (11/11) Feb 18 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9428
- d-bugmail puremagic.com (9/9) Feb 18 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9428
http://d.puremagic.com/issues/show_bug.cgi?id=9428
Summary: Wrong array append
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: major
Priority: P2
Component: druntime
AssignedTo: nobody puremagic.com
ReportedBy: bearophile_hugs eml.cc
import std.stdio: writeln;
void main() {
int[2][] items = [[1, 2]];
int[2] x = [3, 4];
auto r1 = items ~ [x];
writeln(r1);
auto r2 = items ~ x;
writeln(r2);
}
Output:
[[1, 2], [3, 4]]
[[1, 2], [3, 4], [22683584, 4391680]]
Expected output:
[[1, 2], [3, 4]]
[[1, 2], [3, 4]]
Maybe it's a regression.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9428
Oleg Kuporosov <Oleg.Kuporosov gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Oleg.Kuporosov gmail.com
21:56:50 PST ---
both 2.059 and 2.060 have showed the same output as 2.061, so it is not
regression agaist it.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9428
Kenji Hara <k.hara.pg gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
Component|druntime |DMD
Platform|x86 |All
OS/Version|Windows |All
https://github.com/D-Programming-Language/dmd/pull/1590
It is an issue of dmd glue layer, so did not belongs to druntime.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9428 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/976ddc082ef8f74ff9bae199cb9289d0e1d1b4ca fix Issue 9428 - Wrong array concatenation https://github.com/D-Programming-Language/dmd/commit/7b2bc9bab72eb11ec3f89f67190578eaf7f98ead Issue 9428 - Wrong array concatenation -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 18 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9428
Kenji Hara <k.hara.pg gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 18 2013









d-bugmail puremagic.com 