www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19228] New: hasAliasing fails on static arrays

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 puremagic.com
          Reporter: simen.kjaras gmail.com

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

Expected behavior: the assert does not trigger.

--
Sep 06 2018