digitalmars.D.bugs - [Issue 15815] New: [Reg 2.071-devel] deprecation for aliased
- via Digitalmars-d-bugs (34/34) Mar 19 2016 https://issues.dlang.org/show_bug.cgi?id=15815
https://issues.dlang.org/show_bug.cgi?id=15815 Issue ID: 15815 Summary: [Reg 2.071-devel] deprecation for aliased template instance not shown Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: code dawg.eu cat > bug.d <<CODE template Unqual(T) { static if (is(T U == const U)) alias Unqual = U; else alias Unqual = T; } deprecated("message") template Alias(T) { alias Alias = Unqual!T; } struct Foo {} pragma(msg, Alias!(const(Foo))); CODE ---- dmd -c -o- bug ---- Introduced by https://github.com/D-Programming-Language/dmd/pull/5302, but it seems like this already didn't work before for e.g. variable declarations. --
Mar 19 2016