View Issue Details

IDProjectCategoryView StatusLast Update
0038310FPCCompilerpublic2021-01-06 09:04
ReporterPascal Riekenberg Assigned ToSven Barth  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformi386OSWindows 10 x64 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0038310: r48002 breaks determination of overloaded functions: IfThen (Math vs. StrUtils)
DescriptionAttached project does not compile after r48002.
Steps To ReproduceCompile attched project.
Compilation can be fixed by either moving the StrUtils unit to the end of the uses clause or by qualifying the IfThen function with the unit name (StrUtils).
Additional InformationSQLGenerator.pas(294,9) Error: Incompatible type for arg no. 3: Got "Char", expected "Double"
math.pp(2523,10) Hint: Found declaration: IfThen(Boolean;const Double;const Double=` 0.00000000000000000000E+0000`):Double;
math.pp(2518,10) Hint: Found declaration: IfThen(Boolean;const Int64;const Int64=`0`):Int64;
math.pp(2513,10) Hint: Found declaration: IfThen(Boolean;const LongInt;const LongInt=`0`):LongInt;
SQLGenerator.pas(299,9) Error: Incompatible type for arg no. 3: Got "Constant String", expected "Double"
math.pp(2523,10) Hint: Found declaration: IfThen(Boolean;const Double;const Double=` 0.00000000000000000000E+0000`):Double;
math.pp(2518,10) Hint: Found declaration: IfThen(Boolean;const Int64;const Int64=`0`):Int64;
math.pp(2513,10) Hint: Found declaration: IfThen(Boolean;const LongInt;const LongInt=`0`):LongInt;
SQLGenerator.pas(305,7) Error: Incompatible type for arg no. 3: Got "Constant String", expected "Double"
math.pp(2523,10) Hint: Found declaration: IfThen(Boolean;const Double;const Double=` 0.00000000000000000000E+0000`):Double;
math.pp(2518,10) Hint: Found declaration: IfThen(Boolean;const Int64;const Int64=`0`):Int64;
math.pp(2513,10) Hint: Found declaration: IfThen(Boolean;const LongInt;const LongInt=`0`):LongInt;
SQLGenerator.pas(442,60) Error: Incompatible type for arg no. 3: Got "Constant String", expected "Double"
math.pp(2523,10) Hint: Found declaration: IfThen(Boolean;const Double;const Double=` 0.00000000000000000000E+0000`):Double;
math.pp(2518,10) Hint: Found declaration: IfThen(Boolean;const Int64;const Int64=`0`):Int64;
math.pp(2513,10) Hint: Found declaration: IfThen(Boolean;const LongInt;const LongInt=`0`):LongInt;
TagsNo tags attached.
Fixed in Revision48088
FPCOldBugId
FPCTarget-
Attached Files

Activities

Pascal Riekenberg

2021-01-05 13:07

reporter  

project1.zip (1,061 bytes)

Sven Barth

2021-01-05 21:59

manager   ~0128104

Please test and close if okay.

Pascal Riekenberg

2021-01-06 09:04

reporter   ~0128117

Perfect. Thanks.

Issue History

Date Modified Username Field Change
2021-01-05 13:07 Pascal Riekenberg New Issue
2021-01-05 13:07 Pascal Riekenberg File Added: project1.zip
2021-01-05 21:59 Sven Barth Assigned To => Sven Barth
2021-01-05 21:59 Sven Barth Status new => resolved
2021-01-05 21:59 Sven Barth Resolution open => fixed
2021-01-05 21:59 Sven Barth Fixed in Version => 3.3.1
2021-01-05 21:59 Sven Barth Fixed in Revision => 48088
2021-01-05 21:59 Sven Barth FPCTarget => -
2021-01-05 21:59 Sven Barth Note Added: 0128104
2021-01-06 09:04 Pascal Riekenberg Status resolved => closed
2021-01-06 09:04 Pascal Riekenberg Note Added: 0128117