Bug 19228 – hasAliasing fails on static arrays

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2018-09-06T07:27:41Z
Last change time
2018-09-08T07:58:09Z
Keywords
pull
Assigned to
No Owner
Creator
Simen Kjaeraas

Comments

Comment #0 by simen.kjaras — 2018-09-06T07:27:41Z
struct S { int*[1] arr; } import std.traits : hasAliasing; static assert(hasAliasing!S); Expected behavior: the assert does not trigger.
Comment #1 by simen.kjaras — 2018-09-06T07:36:40Z
Comment #2 by github-bugzilla — 2018-09-08T07:58:08Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/bcc9d57b204754771b0c75f213699b81bc5a7755 Fix issue 19228 - hasAliasing fails on static arrays https://github.com/dlang/phobos/commit/bc0bfcf12d7567606bd38b2e6d6c2c0899d1b65d Merge pull request #6694 from Biotronic/issue-19228 Fix issue 19228 - hasAliasing fails on static arrays merged-on-behalf-of: Petar Kirov <[email protected]>