Skip to content

Internal error 2021121905

Summary

Internal error 2021121905

System Information

  • Operating system: Linux
  • Processor architecture: x86-64
  • Compiler version: 3.3.1 e7716dc0
  • Device: Computer

Steps to reproduce

  1. create file asd2.pas:
    unit asd2;
    interface
    	type
    		int32container = record
    			val: int32;
    		end;
    implementation
    	procedure asdf;
    	var
    		a: int32container;
    		b: int32;
    	begin
    		if b > a.val then
    			b := b
    		else
    			b := a.val;
    	end;
    end.
  2. run
    ppcx64 -O2 asd2

What is the current bug behavior?

Free Pascal Compiler version 3.3.1 [2024/04/02] for x86_64
Copyright (c) 1993-2024 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling asd2.pas
asd2.pas(13,6) Warning: Local variable "b" does not seem to be initialized
asd2.pas(13,10) Warning: Local variable "a" does not seem to be initialized
asd2.pas(13,8) Fatal: Internal error 2021121905
Fatal: Compilation aborted

What is the expected (correct) behavior?

Free Pascal Compiler version 3.3.1 [2024/04/02] for x86_64
Copyright (c) 1993-2024 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling asd2.pas
asd2.pas(13,6) Warning: Local variable "b" does not seem to be initialized
asd2.pas(13,10) Warning: Local variable "a" does not seem to be initialized
18 lines compiled, 0.0 sec
2 warning(s) issued
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information