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



--- Comment #15 from yebblies <yebbl...@gmail.com> 2011-06-06 20:01:10 PDT ---
The reason this happens is because TypeFunction does not override constConv. 
When called on TypeFunction, TypeNext::constConv is actually called, which only
compares the return type. (next in TypeFunction is the return type)

I've created a possible fix in dmd pull 88 which defines
TypeFunction::constConv to disallow most implicit conversions between function
pointers.

The current patch allows reasonable purity, safety and nothrow conversions.  If
you're interested, please take a look and see if all cases are covered.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to