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: [email protected]
Reporter: [email protected]
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.
--