www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 548] New: Accessing a value of a deprecated enum is not caught

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

           Summary: Accessing a value of a deprecated enum 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


As it happens, deprecation appears to have no effect on enums (see also issue
542, issue 543 and issue 544), but accessing one of its member values is one
instance that merits its own mention.

----------
deprecated enum DepEnum { A }

int x = DepEnum.A;
----------


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


bugzilla digitalmars.com changed:

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





Fixed dmd 1.032 and 2.016


-- 
Jul 09 2008