Thread overview | ||||||
---|---|---|---|---|---|---|
|
September 05, 2018 hasAliasing with nested static array bug ? | ||||
---|---|---|---|---|
| ||||
https://run.dlang.io/is/TOTsL4 |
September 06, 2018 Re: hasAliasing with nested static array bug ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to SrMordred | On Wednesday, 5 September 2018 at 22:35:16 UTC, SrMordred wrote:
> https://run.dlang.io/is/TOTsL4
I'm not sure I'd consider that a bug, because I do not expect a static array with 1 element to be equal to a member declaration even if it's in a strict.
|
September 06, 2018 Re: hasAliasing with nested static array bug ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to SrMordred | 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 |
September 06, 2018 Re: hasAliasing with nested static array bug ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Kjærås | 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 :)
|
Copyright © 1999-2021 by the D Language Foundation