[Issue 7204] [CTFE] Assertion failure when attempting to access function pointer of delegate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 19 12:31:04 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7204
SomeDude <lovelydear at mailmetrash.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lovelydear at mailmetrash.com
--- Comment #1 from SomeDude <lovelydear at mailmetrash.com> 2012-04-19 12:31:59 PDT ---
Under 2.059 Win32, this won't compile:
auto foo() {
void delegate() myDg;
return myDg.funcptr;
}
enum _ = foo();
void main() {}
PS E:\DigitalMars\dmd2\samples> rdmd bug.d
bug.d(4): Error: Cannot convert &void delegate() to void* at compile time
bug.d(6): called from here: foo()
If we write instead :
enum _ = &foo;
Everything looks fine.
--
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