http://d.puremagic.com/issues/show_bug.cgi?id=7322

           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
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to