[Issue 7204] [CTFE] Assertion failure when attempting to access function pointer of delegate

2013-10-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7204


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #2 from Walter Bright bugzi...@digitalmars.com 2013-10-05 
22:58:05 PDT ---
A correct error message is given by 2.064 head:

test.d(4): Error: Cannot convert void delegate() to void* at compile time
test.d(6):called from here: foo()

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


[Issue 7204] [CTFE] Assertion failure when attempting to access function pointer of delegate

2012-04-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7204


SomeDude lovelyd...@mailmetrash.com changed:

   What|Removed |Added

 CC||lovelyd...@mailmetrash.com


--- Comment #1 from SomeDude lovelyd...@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: ---