November 07, 2013 [Issue 9429] Inconsistent runtime error of array.dup assignment for misaligned types. | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=9429 Denis Shelomovskij <verylonglogin.reg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |verylonglogin.reg@gmail.com Resolution| |INVALID --- Comment #2 from Denis Shelomovskij <verylonglogin.reg@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: ------- |
Copyright © 1999-2021 by the D Language Foundation