Maurice Lombardi wrote:
I have found a bug (at least an unwanted feature) in the last beta (19980830), when trying to compile the file rtsstr.pas contained in the distribution (directory p/rts). In this unit there are some inline functions (e.g. Strlen). When compiled without any optimisation option (-On), the function in simply not contained in the resulting rtsstr.o file, and no error message nor warning is issued. With -O it works fine. Of course it is somewhat contradictory to compile without optimisation and to include explicit inline functions. But at least the inline directive should be ignored in this case if this causes problems with the compiler, and a warning issued.
It seems to be the combination of "asmname" (in the interface) and "inline" that causes this problem. I've made a test suite program for it, and until it's solved, I'll comment out the "inline"s in rtsstr.pas. Thanks for the bug report.
program maur3;
procedure foo; asmname 'bar';
inline procedure foo; begin writeln('OK') end;
begin foo end.