View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0037969 | FPC | General | public | 2020-10-23 09:33 | 2020-10-26 09:28 |
Reporter | Stefan Sinne | Assigned To | Florian | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | x86_64 | OS | Xubuntu | ||
Summary | 0037969: "Internal error 202002162" when compiling package lazreport V1.0 | ||||
Description | Following diff solves the problem: Index: lr_class.pas =================================================================== --- lr_class.pas (revisi¾n: 64044) +++ lr_class.pas (copia de trabajo) @@ -12786,7 +12786,7 @@ else begin // if bandname is provided if yes, don't try to use dataset/field - Obj := curPage.FindObject(trim(P2)); + Obj := curPage.FindObject(trim(String(P2))); if (obj is TfrBandView) and (TfrBandView(Obj).BandType in [btMasterData,btDetailData, | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
FPCOldBugId | |||||
FPCTarget | |||||
Attached Files |
|
|
I compiled LazReport just yesterday and didn't get any internal errors. Remember, such errors are always bugs in FPC. You forgot to mention your FPC version. The code your patch affects has been there forever. Clearly this is not a bug in LazReport. |
|
The issue is with SysUtils' Trim(variant). The cause was introduced in FPC rev 47111. To reproduce: program Project1; {$R *.res} uses sysutils; var aValue: variant; s: String; begin s := Trim( aValue ); end; end. |
|
Looks like I've added that aggressive internal check, so I'll have a look at it. What I can actually say about it so far is that the implemented test-condition doesn't match the intended behaviour according to it's comments, so it's probably easy to fix. Thanks for reporting. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-10-23 09:33 | Stefan Sinne | New Issue | |
2020-10-23 09:53 | Juha Manninen | Note Added: 0126484 | |
2020-10-23 14:07 | Bart Broersma | Project | Packages => FPC |
2020-10-23 14:07 | Bart Broersma | Category | LazReport => General |
2020-10-25 10:03 | Stephano | Note Added: 0126535 | |
2020-10-25 10:03 | Stephano | Assigned To | => Florian |
2020-10-25 10:03 | Stephano | Status | new => assigned |
2020-10-25 20:31 | Jan Bruns | Note Added: 0126553 | |
2020-10-26 09:28 | Stephano | Relationship added | related to 0036666 |