[Issue 10766] Variant does not accept pointers to incomplete (opaque) types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 31 17:43:25 PDT 2013


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


Manu <turkeyman at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |turkeyman at gmail.com


--- Comment #1 from Manu <turkeyman at gmail.com> 2013-08-31 17:43:23 PDT ---
Same issue perhaps?


struct MyStruct;

MyStruct*[] arrayOfPointers;

arrayOfPointers ~= null; // fail
arrayOfPointers = new MyStruct*[n]; // also fail

Complains:
Error: struct MyStruct is forward referenced when looking for 'toHash'
Error: struct MyStruct is forward referenced when looking for 'opCmp'
Error: struct MyStruct is forward referenced when looking for 'toString'
Error: struct MyStruct unknown size
Error: struct MyStruct no size yet for forward reference
Error: struct MyStruct unknown size
Error: struct MyStruct 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