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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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: -------