[Issue 19946] In betterC filling an array with a non-zero value fails for types of size > 1 due to missing _memset16/_memset32/etc.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 16 03:54:26 UTC 2022


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

Richard Cattermole <alphaglosined at gmail.com> changed:

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

--- Comment #12 from Richard Cattermole <alphaglosined at gmail.com> ---
Another example that can trigger this (in -betterC):

```d
extern(C) void main() {
    wchar[2] got;
    func(got);
}

void func(out wchar[2] v) {
}
```

Why do these hooks even exist? They could be a simple rewrite to a foreach loop
in the compiler and not depend on the runtime at all, let alone functions in
rt.

--


More information about the Digitalmars-d-bugs mailing list