[Issue 19228] New: hasAliasing fails on static arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 6 07:27:41 UTC 2018


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

          Issue ID: 19228
           Summary: hasAliasing fails on static arrays
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: simen.kjaras at gmail.com

struct S {
    int*[1] arr;
}
import std.traits : hasAliasing;
static assert(hasAliasing!S);

Expected behavior: the assert does not trigger.

--


More information about the Digitalmars-d-bugs mailing list