[Issue 9248] [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:14:48 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9248
Sönke Ludwig <sludwig at outerproduct.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
--- Comment #1 from Sönke Ludwig <sludwig at outerproduct.org> 2013-01-01 08:14:47 PST ---
Simplified test case:
void main()
{
void*[] a = [cast(void*)1];
void*[] b = [cast(void*)2];
auto c = a ~ b;
assert(c == [cast(void*)1, cast(void*)2]);
}
Corruption does not occur for integral element types.
--
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