Bug 5434 – Function pointers not properly typechecked

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-01-08T11:39:00Z
Last change time
2011-06-06T19:39:53Z
Assigned to
nobody
Creator
eatingstaples

Attachments

IDFilenameSummaryContent-TypeSize
865main.dCode demonstrating issueapplication/octet-stream96

Comments

Comment #0 by eatingstaples — 2011-01-08T11:39:31Z
Created attachment 865 Code demonstrating issue Function pointers can seemingly implicitly cast to other function pointer types.
Comment #1 by yebblies — 2011-06-06T19:39:53Z
With my proposed fix to 3797, this gives the error: testx.d(7): Error: cannot implicitly convert expression (& GetX) of type void fu nction(short _param_0, short _param_1, short i) to void function(string) *** This issue has been marked as a duplicate of issue 3797 ***