[Issue 5069] No missing extern(C) error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 2 04:01:34 PDT 2011


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



--- Comment #3 from bearophile_hugs at eml.cc 2011-09-02 04:01:25 PDT ---
With this fix:
https://github.com/D-Programming-Language/dmd/commit/306df8eaa6f8a987f76f401a1e03d8edf1f1e2ae

Now DMD prints:

test.d(15): Error: function core.stdc.stdlib.qsort (void* base, uint nmemb,
uint size, int C function(in const(void*), in const(void*)) compar) is not
callable using argument types (int*,int,uint,int function(in const(void*), in
const(void*)))
test.d(15): Error: cannot implicitly convert expression (& compare) of type int
function(in const(void*), in const(void*)) to int C function(in const(void*),
in const(void*))


Instead of:
int C function(in const(void*), in const(void*))

I think this allows to see the C better:
int extern(C) function(in const(void*), in const(void*))

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