View Issue Details

IDProjectCategoryView StatusLast Update
0037478FPCCompilerpublic2020-08-08 21:40
ReporterBenito van der Zander Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformamd64OSlinux 
Product Version3.3.1 
Summary0037478: Compilation exception after dependency recompilation
DescriptionCompiling 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 Reproduce1. First you compile main.pas from one of the attachments

2. Then you toggle the commented TTempErrorTrigger = class end; line and compile main.pas again

3. Then you toggle the comment and compile the original main.pas again [if the bug did not already happen in step 2.]
Additional Informationfpcexception.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



TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Relationships

related to 0032352 resolvedFlorian Compiling DoubleCommander project sometimes gives "Fatal: Internal error 200611031" message. 

Activities

Benito van der Zander

2020-08-04 13:24

reporter  

fpcexception.zip (1,012 bytes)

Issue History

Date Modified Username Field Change
2020-08-04 13:24 Benito van der Zander New Issue
2020-08-04 13:24 Benito van der Zander File Added: fpcexception.zip
2020-08-04 13:24 Benito van der Zander File Added: fpcincompatibletype.zip
2020-08-08 21:40 Jonas Maebe Relationship added related to 0032352