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.
Comment #1 by k.hara.pg — 2016-03-20T04:47:23Z
(In reply to Martin Nowak from comment #0) > 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. No, it has been introduced in: https://github.com/D-Programming-Language/dmd/pull/5009
Comment #2 by k.hara.pg — 2016-03-20T05:20:03Z
Comment #3 by github-bugzilla — 2016-03-20T11:01:31Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e9a67955f0d0d63b903423dd9a6f6aaa8f7d2470 fix Issue 15815 - deprecation for aliased template instance not shown Run `type.resolve` always even when `s` is an `AggregateDeclaration` - `(s.getType() && type.equals(s.getType())) == true` https://github.com/D-Programming-Language/dmd/commit/d2c759f54f48e5159a962050b33481b0e26ea030 Merge pull request #5558 from 9rnsr/fix15815 [REG2.071-devel] Issue 15815 - deprecation for aliased template instance not shown
Comment #4 by github-bugzilla — 2016-03-22T04:05:15Z