[Issue 3176] Compiler hangs on poorly formed recurrence function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 5 08:18:19 PDT 2009


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Out of Memory error on      |Compiler hangs on poorly
                   |poorly formed recurrence    |formed recurrence function
                   |function                    |
         OS/Version|Linux                       |All
           Severity|minor                       |major




--- Comment #2 from Don <clugdbug at yahoo.com.au>  2009-08-05 08:18:18 PDT ---
Gets into an infinite loop while parsing the mixin.

Here's a superficial patch, which turns it into an ICE with line number.
Doesn't fix the root cause, but still an improvement.
parse.c, line 3358:

        while (token.value != TOKrcurly)
        {
 +           if (token.value==TOKeof) { 
 +               printf("%s Internal Compiler Error: } expected, not EOF\n",
 +                   loc.toChars());
 +               assert(0);
 +           }

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