950 – Missing filename and line number: conflict between implicit length in [...] and explicit length declared in the scope

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 950 - Missing filename and line number: conflict between implicit length in [...] and explicit length declared in the scope
Summary: Missing filename and line number: conflict between implicit length in [...] a...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords: diagnostic
Depends on:
Blocks:
Reported: 2007年02月11日 20:11 UTC by Stewart Gordon
Modified: 2014年02月16日 15:22 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 Stewart Gordon 2007年02月11日 20:11:08 UTC
----------
void main() {
 int length;
 int[4] data;
 data[length - 1] = 42;
}
----------
Error: array 'length' hides other 'length' name in outer scope
----------
Comment 1 Thomas Kühne 2007年03月04日 05:02:19 UTC
test case:
http://dstress.kuehne.cn/nocompile/l/length_01.d 
Comment 2 Walter Bright 2007年03月29日 19:05:25 UTC
Fixed DMD 1.010


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