[Issue 20689] dmd's -betterC mode generates "undefined reference to '_memsetFloat'" when using float arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 30 21:06:12 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=20689

Blatnik <blatblatnik at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blatblatnik at gmail.com

--- Comment #1 from Blatnik <blatblatnik at gmail.com> ---
This does actually happen with other types of arrays as well. See [Issue
21879].

Although for integer array types it only happens if you try to assign to the
arrays.

For floats and doubles it probably happens even only on declaration because the
default values are NaN, and the compiler emits a _memsetFloat/_memsetDouble to
fill those out.

Arrays generally seem pretty broken in betterC..

--


More information about the Digitalmars-d-bugs mailing list