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


yebblies <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebbl...@gmail.com


--- Comment #2 from yebblies <yebbl...@gmail.com> 2012-01-19 14:10:45 EST ---
(In reply to comment #0)
> Second, why "&f is not an lvalue" error occurs for "(&f).funcptr"? Maybe, I
> don't understand something?

iirc this fails because dmd rewrites dg.funcptr as *(cast(void**)(&dg)+1),
which naturally doesn't work on an rvalue.  The way to fix this is to rewrite
it as cast(void*)(cast(uint<64/128>)dg >> <32/64>), the same way array length
is accessed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to