[Issue 11885] ICE(s2ir.c 359) with continuing a labeled ByLine (range struct w/ dtor) loop

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 6 22:49:30 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11885


yebblies <yebblies at gmail.com> changed:

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


--- Comment #1 from yebblies <yebblies at gmail.com> 2014-02-07 17:49:28 EST ---
Reduced:

void main()
{
    l:
    for (auto x = ByLine();;)
        continue l;
}

Which gets transformed to this:

void main()
{
    l:
    {
        ByLine x = ByLine();
        try
        {
            for (;;)
            {
                continue l;
            }
        }
        finally
        {
            x.~this();
        }
    }
    return 0;
}

And now the l: is not on the for loop any more.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list