[Issue 7426] Inner struct "no size yet for forward reference" when using .tupleof inside it.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 5 23:45:07 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7426
--- Comment #3 from kennytm at gmail.com 2012-02-05 23:45:05 PST ---
(In reply to comment #2)
> Probably related test case:
>
> struct S {
> static if(hasIndirections!(typeof(this))) {}
> }
>
> template hasIndirections(T)
> {
> enum hasIndirections = hasIndirectionsImpl!(T.tupleof);
> }
>
> template hasIndirectionsImpl(T...)
> {
> static if (!T.length)
> {
> enum hasIndirectionsImpl = false;
> }
> else
> {
> enum hasIndirectionsImpl = true;
> }
> }
Pull #696 removed the 'no size yet for forward reference' in this test case,
but DMD will complain 'template instance test.hasIndirectionsImpl!(tuple())
error instantiating' anyway.
--
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