[Issue 5994] New: Regression(2.038) Function pointer assignments are not type-checked

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 13 00:55:38 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5994

           Summary: Regression(2.038) Function pointer assignments are not
                    type-checked
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: samukha at voliacable.com


--- Comment #0 from Max Samukha <samukha at voliacable.com> 2011-05-13 00:51:35 PDT ---
Only return types seem to be checked. This should not compile:

alias void function(byte a) foo_t;
void foo(int x) {}
foo_t foo_p = &foo;

void main()
{   
}

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