Compilation exception after dependency recompilation
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
Compiling the program from fpcexception.zip multiple times gives "Compilation raised exception internally"
Compiling the program from fpcincompatibletype.zip multiple times gives "b.pas(19,40) Error: Incompatible type for arg no. 2: Got "TTreeNode", expected "IXQValue""
Steps to reproduce:
-
First you compile main.pas from one of the attachments
-
Then you toggle the commented TTempErrorTrigger = class end; line and compile main.pas again
-
Then you toggle the comment and compile the original main.pas again [if the bug did not already happen in step 2.]
Additional information:
fpcexception.zip:
$ fpc main.pas
Free Pascal Compiler version 3.3.1 [2020/08/02] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Compiling a.pas
Compiling main.pas
Compiling b.pas
Compiling main.pas
main.pas(34,24) Warning: Function result does not seem to be set
main.pas(39,24) Warning: Function result does not seem to be set
b.pas(18,40) Warning: Variable "tree" does not seem to be initialized
113 lines compiled, 0.1 sec
3 warning(s) issued
$ fpc main.pas
Free Pascal Compiler version 3.3.1 [2020/08/02] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Compiling main.pas
Compiling main.pas
main.pas(34,24) Warning: Function result does not seem to be set
main.pas(39,24) Warning: Function result does not seem to be set
Compiling b.pas
b.pas(18,41) Error: Compilation raised exception internally
Fatal: Compilation aborted
An unhandled exception occurred at $0000000000764977:
EAccessViolation: Access violation
$0000000000764977
fpcincompatibletype.zip:
$ fpc main.pas
Free Pascal Compiler version 3.3.1 [2020/08/02] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Compiling a.pas
Compiling main.pas
Compiling b.pas
Compiling main.pas
main.pas(34,24) Warning: Function result does not seem to be set
main.pas(39,24) Warning: Function result does not seem to be set
b.pas(19,40) Warning: Variable "tree" does not seem to be initialized
114 lines compiled, 0.1 sec
3 warning(s) issued
$ fpc main.pas
Free Pascal Compiler version 3.3.1 [2020/08/02] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Compiling main.pas
Compiling main.pas
main.pas(34,24) Warning: Function result does not seem to be set
main.pas(39,24) Warning: Function result does not seem to be set
Compiling b.pas
b.pas(19,40) Error: Incompatible type for arg no. 2: Got "TTreeNode", expected "IXQValue"
b.pas(22) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
This is just a slight modification of the https://bugs.freepascal.org/view.php?id=32352#c116389 program
Mantis conversion info:
- Mantis ID: 37478
- OS: linux
- OS Build: opensuse
- Build: r45986
- Platform: amd64
- Version: 3.3.1