[Issue 9429] Inconsistent runtime error of array.dup assignment for misaligned types.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 7 11:17:11 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=9429


Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |verylonglogin.reg at gmail.com
         Resolution|                            |INVALID


--- Comment #2 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-11-07 22:17:09 MSK ---
The testcase can be reduced to this:
---
float[3] arr = [1.0, 2.0, 3.0].dup;
---
Here array of 3 `double`s is created, duplicated, and converted to 6 `float`s
which than correctly fails on copying to 3 `float`s. So the problem is the
compiler allows such initialization. Opened Issue 11470 for this.

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


More information about the Digitalmars-d-bugs mailing list