www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1767] New: rejects-valid, diagnostic

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

           Summary: rejects-valid, diagnostic
           Product: D
           Version: 2.008
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davidl 126.com


class DebugInfo 
{
typedef int CVHeaderType ;
enum anon:CVHeaderType{ CV_NONE, CV_DOS, CV_NT, CV_DBG }
}

Error: no property 'max' for type 'CVHeaderType'
Error: no property 'max' for type 'CVHeaderType'
testdmd.d(4): enum testdmd.DebugInfo.anon overflow of enum value
cast(anon)cast(CVHeaderType)1
Error: no property 'max' for type 'CVHeaderType'

error message doesn't give line number at first, and nonsensual. 
The code should be valid.


-- 
Jan 02 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1767


bugzilla digitalmars.com changed:

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




------- Comment #1 from bugzilla digitalmars.com  2008-02-16 06:06 -------
Fixed dmd 1.026 and 2.010


-- 
Feb 16 2008