View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038355 | FPC | Compiler | public | 2021-01-14 06:56 | 2021-01-14 06:56 |
Reporter | Do-wan Kim | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 3.3.1 | ||||
Summary | 0038355: Delphi mode fails compiling on proc type parameter. | ||||
Description | Under delphi mode, FPC trunk fails checking proc parameter on some 'Assigned' function with '-O2' switch. It doesn't happens with '-O1' switch or 'objfpc' mode. | ||||
Steps To Reproduce | program test_assigned; {$mode delphi} {$R *.res} type TProcOBJ = procedure of object; TProcTest = procedure(a, b, c:Integer); function testfunc(const p1:TProcOBJ; p2, p3:TProcTest):integer; begin Result:=0; if not Assigned(p1) or Assigned(p2) or // works (not Assigned(p2) and not Assigned(p3)) // fails then exit; end; begin testfunc(nil,nil,nil); end. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
FPCOldBugId | |||||
FPCTarget | |||||
Attached Files |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-01-14 06:56 | Do-wan Kim | New Issue |