December 20, 2009 [Issue 3635] New: Arrays of pointers to forward declared structs fail to compile | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from siegelords_abode@yahoo.com 2009-12-19 19:53:40 PST --- 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: ------- |
Copyright © 1999-2021 by the D Language Foundation