[Issue 21074] New: const lost in mixin
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 25 14:39:35 UTC 2020
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 at puremagic.com
Reporter: tim.dlang at 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
--
More information about the Digitalmars-d-bugs
mailing list