[Issue 10451] Array of pointers to opaque struct gives forward reference errors.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 11 07:23:11 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10451



--- Comment #1 from Mike Parker <aldacron at gmail.com> 2013-08-11 07:23:09 PDT ---
I've got some new info on this. The error also occurs outside of structs if the
array is initialized:

=========
struct foo;

void main() {
    foo*[] foos = [];
}
=========

Here's the full error spew that I get in both cases:

==================
forref.d(3): Error: struct forrref.foo is forward referenced when looking for
't
oHash'
forref.d(3): Error: struct forrref.foo is forward referenced when looking for
'o
pCmp'
forref.d(3): Error: struct forrref.foo is forward referenced when looking for
't
oString'
forref.d(3): Error: struct forrref.foo unknown size
forref.d(3): Error: struct forrref.foo no size yet for forward reference
forref.d(3): Error: struct forrref.foo unknown size
forref.d(3): Error: struct forrref.foo no size yet for forward reference
===================

-- 
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