[Issue 15815] New: [Reg 2.071-devel] deprecation for aliased template instance not shown
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Mar 19 17:32:50 PDT 2016
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 at puremagic.com
Reporter: code at 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.
--
More information about the Digitalmars-d-bugs
mailing list