[Issue 9248] New: [2.061 beta] Concatenation of array literal and array produces corrupted result
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 1 08:03:54 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9248
Summary: [2.061 beta] Concatenation of array literal and array
produces corrupted result
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: sludwig at outerproduct.org
--- Comment #0 from Sönke Ludwig <sludwig at outerproduct.org> 2013-01-01 08:03:52 PST ---
The following code produces something similar to:
in: 1 [2]
out: [1, 1C11FE0]
instead of:
in: 1 [2]
out: [1, 2]
---
import std.stdio;
void test2(void*[] arr){
writefln("out: %s", arr);
}
void test(void* a, void*[] arr){
writefln("in: %s %s", a, arr);
test2([a] ~ arr);
}
void main(){
void*[] arr;
arr ~= cast(void*)2;
test(cast(void*)1, arr);
}
---
--
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