Error: Incompatible declaration of runtime function `_d_arraybounds`

David Nadlinger code at klickverbot.at
Sun Aug 23 14:15:32 UTC 2020


On 23 Aug 2020, at 14:25, Adam D. Ruppe via digitalmars-d-ldc wrote:
> I don't really know my way around the ldc source... what can I do 
> about this?

Use grep. :P

---

~/ldc $ rg arraybounds
gen/runtime.cpp
554:  // void _d_arraybounds(string file, uint line)
555:  createFwdDecl(LINKc, Type::tvoid, {"_d_assert", "_d_arraybounds"},

gen/arrays.cpp
1365:        getRuntimeFunction(loc, irs->module, "_d_arraybounds");
---

You can add the extra parameters in gen/runtime.cpp (first hit), but 
you'll also need to update the bounds checking code to emit the extra 
argument (second hit).

  — David


More information about the digitalmars-d-ldc mailing list