Method signature differences in core modules on dmd and gdc?

Iain Buclaw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 12 12:34:29 PDT 2014


On Sunday, 12 October 2014 at 19:20:49 UTC, Gary Willoughby wrote:
> I've been recently trying GDC out to compile some D code and 
> i'm running into the problem of differing function signatures 
> in core modules.
>
> For example:
>
> stack.d:79: error: function core.memory.GC.calloc (ulong sz, 
> uint ba = 0u) is not callable using argument types (ulong, 
> BlkAttr, TypeInfo_Array)
> stack.d:110: error: function core.memory.GC.realloc (void* p, 
> ulong sz, uint ba = 0u) is not callable using argument types 
> (string*, ulong, BlkAttr, TypeInfo_Array)
> <snip>
>
> These compile fine using DMD. Anybody know what the issue is 
> here?

GDC is still on version 2.065.


More information about the Digitalmars-d-learn mailing list