D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1891 - Array-concatenation of T* and T*[] produces corrupted result
Summary: Array-concatenation of T* and T*[] produces corrupted result
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P2 major
Assignee: No Owner
URL:
Keywords: patch, wrong-code
Depends on:
Blocks:
 
Reported: 2008-03-03 15:55 UTC by Sönke Ludwig
Modified: 2015-06-09 01:14 UTC (History)
2 users (show)

See Also:


Attachments
Testcase (652 bytes, text/plain)
2008-03-03 15:56 UTC, Sönke Ludwig
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Sönke Ludwig 2008-03-03 15:55:21 UTC
Concatenation of values of T* and T*[] seems to produce an invalid result array, as soon as T.sizeof > 4. The attached source demonstrates the problem.

GDC does not seem to have this problem, but I have not tested this on DMD 1.x.
Comment 1 Sönke Ludwig 2008-03-03 15:56:43 UTC
Created attachment 231 [details]
Testcase
Comment 2 yebblies 2011-07-05 09:03:22 UTC
patch: https://github.com/D-Programming-Language/dmd/pull/214