[Issue 2318] flaw code generation building a function pointer table
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 1 07:26:12 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2318
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |clugdbug at yahoo.com.au
Resolution| |INVALID
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2010-02-01 07:26:10 PST ---
This is invalid: the code creates delegates, then casts them to function
pointers.
To create the desired effect, this line:
pTst.apFnc[0] = cast(FnPtr) &pTst.func0;
should be changed to:
pTst.apFnc[0] = &TTest.func0;
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list