[Issue 8400] New: static array type cannot interpret dynamic array	length
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jul 18 15:56:57 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=8400
           Summary: static array type cannot interpret dynamic array
                    length
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-07-18 15:56:56 PDT ---
DMD 2.059:
void main(){
    immutable a = [1,2];
    int[a.length+0] b; // ok
    int[a.length  ] c; // error
}
The code should compile.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list