Hi,
It has been a pretty long time…! I am finally updating to the latest WIP version, and I found an issue with the new generated copy constructor when using the JIT (still using the forked BlingMind JIT here).
When trying to JIT Compile these generated methods, the address returned by func->scriptData->byteCode.AddressOf() is NULL. func is the asScriptFunction returned by function->GetEngine()->GetFunctionById(asBC_INTARG(pOp)) on a asBC_CALL, and function is the function currently being compiled by the JIT in CompileFunction().
It used to crash the JIT compiler, but if I fix it and return false (because it cannot be compiled by the JIT), I get a warning for all copy constructors: "Function '%s' appears to have been compiled without JIT entry points".
This makes sense, but I guess there must be something wrong here. I have currently disabled this new capability, but maybe you want to have a look at it (or I need to change the way the JIT works?).