<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Bart via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mi., 23. Juni 2021, 18:59:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The error goes away if I remove the inline directive from the function<br>
definition in the interface section, or if I also declare the other<br>
function (which gives the linker error) in the interface section.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The compiler shouldn't do the inlining in that case, cause the pre-3.3.1 compiler doesn't allow inlining of implementation-only functions (and that was something that was indeed fixed in 3.2.0: the overload that's not declared in the interface section is no longer available globally). </div><div dir="auto"><br></div><div dir="auto">3.3.1 handles inlining of implementation-only functions correctly. </div><div dir="auto"><br></div><div dir="auto">Thus for 3.2.0 and 3.2.2 you indeed need to use the workarounds you mentioned. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>