[Issue 3192] Segfault(iasm.c) asm in a anonymous delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 20 00:50:56 PDT 2009


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




--- Comment #2 from Don <clugdbug at yahoo.com.au>  2009-07-20 00:50:55 PDT ---
This patch is enough to fix the segfault, and allow the code to compile. I'm
not sure if it's correct that nextOf() is null, though -- there may be a deeper
problem here.

iasm.c line 4269. (in Statement *AsmStatement::semantic(Scope *sc)):

    asmstate.bReturnax = 1;
-    if (sc->func->type->nextOf()->isscalar())
+    if (sc->func->type->nextOf() && sc->func->type->nextOf()->isscalar())
    asmstate.bReturnax = 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