1020 – regression: mov EAX, func

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1020 - regression: mov EAX, func
Summary: regression: mov EAX, func
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P3 normal
Assignee: Walter Bright
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
Reported: 2007年03月04日 05:02 UTC by Thomas Kühne
Modified: 2014年02月16日 15:24 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2007年03月04日 05:02:43 UTC
# 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
Comment 1 Walter Bright 2007年03月19日 17:40:25 UTC
Fixed DMD 1.009


AltStyle によって変換されたページ (->オリジナル) /