Summary: Taking address of deprecated functions isn't refused
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid, diagnostic
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-01-19 11:23:32 PST ---
In DMD 2.058head std.string.rjustify is deprecated, so this program:

import std.string;
void main() {
    rjustify!string("hello", 10);

Gives the correct error message:
test.d(3): Error: function std.string.rjustify!(string).rjustify is deprecated

But this program gives no deprecated errors:

import std.string;
void main() {
    auto J = &rjustify!string;
    J("hello", 10);

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to