[Issue 3261] compiler crash with mixin and forward reference (Issue 402 and 784)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 25 02:30:46 PDT 2009


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


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

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




--- Comment #1 from Don <clugdbug at yahoo.com.au>  2009-08-25 02:30:46 PDT ---
Here's a superficial patch. If an error occurs while determining the arguments,
it shouldn't try to determine which template is intended.


Patch: template.c, line 4542.
--------
    // Run semantic on each argument, place results in tiargs[]
+    int olderrors = global.errors;
    semanticTiargs(sc);
+    if (global.errors != olderrors) return; // Quit immediately if error
occurs in argument

    tempdecl = findBestMatch(sc);
    if (!tempdecl)
    {    inst = this;
    return;        // error recovery
    }

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