[Issue 4864] ICE(statement.c) Crash on invalid 'if statement' body inside mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 17 00:14:53 PST 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-11-17 00:13:39 PST ---
PATCH: statement.c 337.
CompileStatement::flatten()

    Statements *a = new Statements();
    while (p.token.value != TOKeof)
    {
+       int olderrs = global.errors;
        Statement *s = p.parseStatement(PSsemi | PScurlyscope);
+       if (olderrs == global.errors) // discard it if parsing failed
            a->push(s);
    }

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