[Issue 2064] Segfault with mixin(for/foreach) with empty loop body

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 23 06:07:05 PDT 2008


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


clugdbug at yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
            Summary|Dmd faults                  |Segfault with
                   |                            |mixin(for/foreach) with
                   |                            |empty loop body




------- Comment #1 from clugdbug at yahoo.com.au  2008-06-23 08:07 -------
Reduced test case, shows that the problem is a for/foreach with empty body.
I've changed the bug title accordingly. Also happens on dmd 1.031.

----
void main ()
{
        mixin (`for(;;)`);
}
---
bug.d(3): found 'EOF' instead of statement
then segfaults.


-- 



More information about the Digitalmars-d-bugs mailing list