Bug 15815 – [REG2.071-devel] deprecation for aliased template instance not shown
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-03-20T00:32:00Z
Last change time
2016-03-22T04:05:15Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
code
Comments
Comment #0 by code — 2016-03-20T00:32:50Z
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.