March 04, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1020

           Summary: regression: mov EAX, func
           Product: D
           Version: 1.007
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: thomas-dloop@kuehne.cn


#    void func(){
#    }
#
#    int main(){
#       void* a = &func;
#       uint* b = cast(uint*) a;
#       uint f = *b;
#       uint g;
#
#       asm{
#          mov EAX, func;
#          mov g, EAX;
#       }
#
#       if(f != g){
#          assert(0);
#       }
#
#       return 0;
#    }


-O : Internal error: ../ztc/cod3.c 1760
-g -O: compiler segfault

test case:
http://dstress.kuehne.cn/run/a/asm_mov_04_A.d a.d


-- 

March 19, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1020


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla@digitalmars.com  2007-03-19 17:40 -------
Fixed DMD 1.009


--