[Issue 10537] Forward reference error on 'yield' toy example.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 4 17:55:09 PDT 2013


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



--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-07-04 17:55:07 PDT ---
Reduced test case:

struct Iota10537
{
    int s,e,i;
    mixin Yield10537!q{ ; };
}

auto skipStrings10537(T)(T source)
{
    return "";
}

mixin template Yield10537(dstring code)
{
    alias X = typeof({ enum x = rewriteCode10537(code); }());
}

dstring rewriteCode10537(dstring code)
{
    skipStrings10537(code);  // IFTI causes forward reference
    return "";
}

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