[Issue 3635] New: Arrays of pointers to forward declared structs fail to compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 19 19:53:42 PST 2009
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 at puremagic.com
ReportedBy: siegelords_abode at yahoo.com
--- Comment #0 from siegelords_abode at 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: -------
More information about the Digitalmars-d-bugs
mailing list