[Issue 1020] New: regression: mov EAX, func

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 4 03:02:52 PST 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 at digitalmars.com
        ReportedBy: thomas-dloop at 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


-- 



More information about the Digitalmars-d-bugs mailing list