Bug 5994 – Regression(2.038) Function pointer assignments are not type-checked

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-05-13T00:51:00Z
Last change time
2011-05-13T06:00:57Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
samukha

Comments

Comment #0 by samukha — 2011-05-13T00:51:35Z
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() { }
Comment #1 by yebblies — 2011-05-13T06:00:57Z
*** This issue has been marked as a duplicate of issue 3797 ***