www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 950] New: Missing filename and line number: conflict between implicit length in [...] and explicit length declared in the scope

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

           Summary: Missing filename and line number: conflict between
                    implicit length in [...] and explicit length declared in
                    the scope
           Product: D
           Version: 1.005
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: smjg iname.com


----------
void main() {
    int length;
    int[4] data;

    data[length - 1] = 42;
}
----------
Error: array 'length' hides other 'length' name in outer scope
----------


-- 
Feb 11 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=950






test case:
http://dstress.kuehne.cn/nocompile/l/length_01.d


-- 
Mar 04 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=950


bugzilla digitalmars.com changed:

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





Fixed DMD 1.010


-- 
Mar 29 2007