[Issue 7249] 2.058 regression: "no size yet for forward reference" when using this.init.tupleof
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 8 15:11:54 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7249
--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> 2012-01-08 15:11:53 PST ---
In my case, the list of fields is passed as a template parameter:
struct S(string FIELDS)
{
mixin(FIELDS);
alias typeof(Fields.init.tupleof[0]) TypeOfFirstField;
}
There is a simple workaround available:
struct Fields { mixin(FIELDS); }
alias typeof(Fields.init.tupleof[0]) TypeOfFirstField;
So, if you think this is not a bug, I'm not against this change.
--
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