Thread overview
[Issue 20689] dmd's -betterC mode generates "undefined reference to '_memsetFloat'" when using float arrays
Apr 30, 2021
Blatnik
Jun 04, 2022
Walter Bright
Jun 08, 2022
Dennis
April 30, 2021
https://issues.dlang.org/show_bug.cgi?id=20689

Blatnik <blatblatnik@gmail.com> changed:

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

--- Comment #1 from Blatnik <blatblatnik@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..

--
June 04, 2022
https://issues.dlang.org/show_bug.cgi?id=20689

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |betterC
                 CC|                            |bugzilla@digitalmars.com

--
June 08, 2022
https://issues.dlang.org/show_bug.cgi?id=20689

Dennis <dkorpel@live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dkorpel@live.nl
         Resolution|---                         |DUPLICATE

--- Comment #2 from Dennis <dkorpel@live.nl> ---


*** This issue has been marked as a duplicate of issue 19946 ***

--