digitalmars.D.bugs - [Issue 3635] New: Arrays of pointers to forward declared structs fail to compile
- d-bugmail puremagic.com (28/28) Dec 19 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3635
http://d.puremagic.com/issues/show_bug.cgi?id=3635 Summary: Arrays of pointers to forward declared structs fail to compile Product: D Version: 1.051 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: siegelords_abode yahoo.com Arrays of pointers to forward declared structs issue compile-time errors in dmd 1.053 (and possibly others). Code to reproduce this bug: struct Struct; void main() { Struct*[] arr; arr.length = 1; } Workabouts: Use an associative array. Declare struct as struct Struct {}; (might not be foolproof, but works for me) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 19 2009