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: -------

Reply via email to