Bug 1891 – Array-concatenation of T* and T*[] produces corrupted result

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2008-03-03T15:55:00Z
Last change time
2015-06-09T01:14:35Z
Keywords
patch, wrong-code
Assigned to
nobody
Creator
sludwig

Attachments

IDFilenameSummaryContent-TypeSize
231bug_arrayconcat.dTestcasetext/plain652

Comments

Comment #0 by sludwig — 2008-03-03T15:55:21Z
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 by sludwig — 2008-03-03T15:56:43Z
Created attachment 231 Testcase
Comment #2 by yebblies — 2011-07-05T09:03:22Z
Comment #3 by bugzilla — 2011-10-04T01:47:51Z