← Back to index
|
Original Bugzilla link
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
ID
Filename
Summary
Content-Type
Size
231
bug_arrayconcat.d
Testcase
text/plain
652
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
patch:
https://github.com/D-Programming-Language/dmd/pull/214
Comment #3
by bugzilla — 2011-10-04T01:47:51Z
https://github.com/D-Programming-Language/dmd/commit/51d83859ec2440f90ca1625640358502372b1465
https://github.com/D-Programming-Language/dmd/commit/411fdb0f7b391a028d40ec888b63d44ebcb646bb