www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1891] New: Array-concatenation of T* and T*[] produces corrupted result

reply d-bugmail puremagic.com writes:
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.


-- 
Mar 03 2008
next sibling parent d-bugmail puremagic.com writes:
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


-- 
Mar 03 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Jul 05 2011
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Oct 04 2011