FreeBASIC Compiler - Version 1.20.0 (2026-04-15), built for win64 (64bit)
Copyright (C) 2004-2025 The FreeBASIC development team.
standalone
-gen gas64
no issue when adding -g
edit: issue not present in FBC 1.10.1 with same command-line options
Wrong code is emitted with the following source code:
Dim As Single a = Any, b = Any, c = Any, d = Any
c = a + b '' any arithmetic
'' compilation error: operand type mismatch for 'movd'
If c > d Then
'' anything
End If
'' no compilation error
Dim As Boolean logic = c > d
'' no compilation error
If a + b > d Then
'' anything
End If
FreeBASIC Compiler - Version 1.20.0 (2026-04-15), built for win64 (64bit)
Copyright (C) 2004-2025 The FreeBASIC development team.
standalone
-gen gas64
no issue when adding -g
edit: issue not present in FBC 1.10.1 with same command-line options
Wrong code is emitted with the following source code: