1767 – rejects-valid, diagnostic

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1767 - rejects-valid, diagnostic
Summary: rejects-valid, diagnostic
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年01月02日 22:26 UTC by david
Modified: 2015年06月09日 01:14 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description david 2008年01月02日 22:26:21 UTC
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.
Comment 1 Walter Bright 2008年02月16日 06:06:06 UTC
Fixed dmd 1.026 and 2.010


AltStyle によって変換されたページ (->オリジナル) /