hasAliasing with nested static array bug ?

SrMordred patric.dexheimer at gmail.com
Thu Sep 6 13:17:39 UTC 2018


On Thursday, 6 September 2018 at 07:37:11 UTC, Simen Kjærås wrote:
> On Wednesday, 5 September 2018 at 22:35:16 UTC, SrMordred wrote:
>> https://run.dlang.io/is/TOTsL4
>
> Yup, that's a bug. Reduced example:
>
> struct S {
>     int*[1] arr;
> }
> import std.traits : hasAliasing;
> static assert(hasAliasing!S);
>
>
> Issue filed: https://issues.dlang.org/show_bug.cgi?id=19228
> Pull request: https://github.com/dlang/phobos/pull/6694
>
> --
>   Simen

Nice, thanks :)


More information about the Digitalmars-d-learn mailing list