www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 543] New: Function return of a deprecated type is not caught

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=543

           Summary: Function return of a deprecated type is not caught
           Product: D
           Version: 0.174
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: smjg iname.com


The types defined in this code are all deprecated.  However, the compiler fails
to report a single error for their use as function return types.

----------
deprecated {
    class DepClass {}
    struct DepStruct {}
    union DepUnion {}
    enum DepEnum { A }
    alias int DepAlias;
    typedef int DepTypedef;
}

DepClass returnClass();
DepStruct returnStruct();
DepUnion returnUnion();
DepEnum returnEnum();
DepAlias returnAlias();
DepTypedef returnTypedef();
void useFunction(DepClass function());
void useDelegate(DepStruct delegate());
----------


-- 
Nov 17 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=543


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2008-07-09 22:34 -------
Fixed dmd 1.032 and 2.016


-- 
Jul 09 2008