Error: Incompatible declaration of runtime function `_d_arraybounds`

Adam D. Ruppe destructionator at gmail.com
Sun Aug 23 13:25:30 UTC 2020


A little known fact is dmd actually provides index and length for 
RangeError in e2ir.d, but druntime doesn't do anything with it.

I just tried defining an object.d in ldc with this:

extern(C) void _d_arraybounds(string file, size_t line, size_t 
lwr, size_t upr, size_t length) {}


to take advantage of this data and ldc outright rejected it. I 
don't really know my way around the ldc source... what can I do 
about this?


More information about the digitalmars-d-ldc mailing list