inline bug
Original Reporter info from Mantis: nickysn @nickysn
-
Reporter name: Nikolay Nikolov
Original Reporter info from Mantis: nickysn @nickysn
- Reporter name: Nikolay Nikolov
Description:
The following linker error is produced, when compiling the attached program. Problem disappears when inlining is turned off ({$INLINE OFF}). This was tested on x86_64-linux, using Fedora 32.
Free Pascal Compiler version 3.2.0 [2020/06/21] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling inline_bug.pas
Linking inline_bug
/usr/bin/ld: inline_bug.o: in function P$INLINE_BUG$_$TMODULE_$__$$_DOSTUFF':<br/> inline_bug.pas:(.text.n_p$inline_bug$_$tmodule_$__$$_dostuff+0x59): undefined reference to
.Lj62'
inline_bug.pas(69,1) Error: Error while linking
inline_bug.pas(69,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Steps to reproduce:
See Description.
Additional information:
Problem exists in FPC 3.2.0 and FPC 3.2.1 from the current fixes_3_2 branch. FPC trunk doesn't seem to be affected (or this might already be fixed there already).
Mantis conversion info:
- Mantis ID: 37423
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 46334 (#b3adeaae)
- Monitored by: » @CuriousKit (J. Gareth Moreton), » @VisualDoj (doj)