[Issue 1767] New: rejects-valid, diagnostic

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 2 20:26:22 PST 2008


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 at digitalmars.com
        ReportedBy: davidl at 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.


-- 



More information about the Digitalmars-d-bugs mailing list