Bug 21074 – const lost in mixin

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-07-25T14:39:35Z
Last change time
2020-08-10T12:09:37Z
Keywords
pull, rejects-valid
Assigned to
No Owner
Creator
Tim

Comments

Comment #0 by tim.dlang — 2020-07-25T14:39:35Z
The following code fails: alias Byte = ubyte; alias T = mixin(q{const(Byte)})*; static assert(is(T==const(ubyte)*)); // fails Dmd v2.091.1 produces the error message: Error: static assert: is(ubyte* == const(ubyte)*) is false
Comment #1 by moonlightsentinel — 2020-07-25T15:18:52Z
This is a regression from 2.089.1 introduced by this PR: https://github.com/dlang/dmd/pull/10629
Comment #2 by dlang-bot — 2020-07-26T06:15:20Z
@BorisCarvajal created dlang/dmd pull request #11458 "Fix Issue 21074 - const lost in mixin" fixing this issue: - Fix Issue 21074 - const lost in mixin https://github.com/dlang/dmd/pull/11458
Comment #3 by dlang-bot — 2020-07-26T13:17:56Z
dlang/dmd pull request #11458 "Fix Issue 21074 - const lost in mixin" was merged into stable: - d350d50f33cb1cf26254825230fdc61a4f575e17 by Boris Carvajal: Fix Issue 21074 - const lost in mixin https://github.com/dlang/dmd/pull/11458
Comment #4 by dlang-bot — 2020-07-27T09:30:56Z
dlang/dmd pull request #11462 "Fix Issue 21074 - const lost in mixin (extra case)" was merged into stable: - 8674fbe6ea7efe9378f11a59af5a387c7aee64f3 by Boris Carvajal: Fix Issue 21074 - const lost in mixin (extra case) https://github.com/dlang/dmd/pull/11462
Comment #5 by dlang-bot — 2020-08-10T12:09:37Z
dlang/dmd pull request #11542 "merge stable" was merged into master: - c3b001298886ffe3da1dace653344f541de9b11b by Boris Carvajal: Fix Issue 21074 - const lost in mixin - a8f0c1ef0cdff9511de3de53b6a76f980fb37e8e by Boris Carvajal: Fix Issue 21074 - const lost in mixin (extra case) https://github.com/dlang/dmd/pull/11542