Summary: function pointers to non-static function without an
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-07-11 09:32:15 PDT ---
import std.stdio;

struct test
    int foo(int k) //forgot to defined as static
        return k;

int main(string[] argv)
    int function(int) fp;

    fp = &; //this should not be possible, as foo is not static. it
allows dirty hacks, though.
    int x = fp(99);
   return 0;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to