digitalmars.D.bugs - [Issue 21074] New: const lost in mixin
- d-bugmail puremagic.com (20/20) Jul 25 2020 https://issues.dlang.org/show_bug.cgi?id=21074
https://issues.dlang.org/show_bug.cgi?id=21074 Issue ID: 21074 Summary: const lost in mixin Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: tim.dlang t-online.de 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 --
Jul 25 2020