digitalmars.D.bugs - [Issue 2455] New: Cannot use .ptr or .length in asm code
- d-bugmail puremagic.com (28/28) Nov 14 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2455
http://d.puremagic.com/issues/show_bug.cgi?id=2455 Summary: Cannot use .ptr or .length in asm code Product: D Version: 1.011 Platform: PC OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: clugdbug yahoo.com.au It's in dstress as: http://dstress.kuehne.cn/run/t/tuple_23_C.d void foo(int [] q) { asm{ mov EAX, q.ptr; // mov ECX, q.length; // this doesn't work either } } There aren't any good workarounds for this. Creating a local variable and using 'naked' are the two best options, but they're both ugly. --
Nov 14 2008