Thread overview
[Issue 1891] New: Array-concatenation of T* and T*[] produces corrupted result
Mar 03, 2008
d-bugmail
Mar 03, 2008
d-bugmail
Jul 05, 2011
yebblies
Oct 04, 2011
Walter Bright
March 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1891

           Summary: Array-concatenation of T* and T*[] produces corrupted
                    result
           Product: D
           Version: 2.011
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: ludwig@informatik.uni-luebeck.de


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.


-- 

March 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1891





------- Comment #1 from ludwig@informatik.uni-luebeck.de  2008-03-03 15:56 -------
Created an attachment (id=231)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=231&action=view)
Testcase


-- 

July 05, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1891


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |yebblies@gmail.com
           Severity|normal                      |major


--- Comment #2 from yebblies <yebblies@gmail.com> 2011-07-06 02:03:22 EST ---
patch: https://github.com/D-Programming-Language/dmd/pull/214

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 04, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1891


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2011-10-04 01:47:51 PDT ---
https://github.com/D-Programming-Language/dmd/commit/51d83859ec2440f90ca1625640358502372b1465

https://github.com/D-Programming-Language/dmd/commit/411fdb0f7b391a028d40ec888b63d44ebcb646bb

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------