[Issue 10766] New: Variant does not accept pointers to incomplete (opaque) types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 6 09:11:40 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10766
Summary: Variant does not accept pointers to incomplete
(opaque) types
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: acehreli at yahoo.com
--- Comment #0 from Ali Cehreli <acehreli at yahoo.com> 2013-08-06 09:11:38 PDT ---
import std.stdio;
import std.variant;
struct S;
void main()
{
S * p;
auto v = Variant(p);
}
Error: struct deneme.S is forward referenced when looking for 'toHash'
Error: struct deneme.S is forward referenced when looking for 'toString'
Error: struct deneme.S unknown size
Error: struct deneme.S no size yet for forward reference
Error: struct deneme.S unknown size
Error: struct deneme.S no size yet for forward reference
Being a user of Variant, std.concurrency is affected when sending messages of
pointers to opaque types.
Ali
--
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