View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0038379||FPC||Compiler||public||2021-01-21 10:20||2021-01-24 17:30|
|Reporter||Andrey Zubarev||Assigned To|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Summary||0038379: Warn: Variable does not seem to be initialized for advancedrecords|
This code does not cause warnings. If comment D.DoSomething, this give
>>project1.lpr(33,9) Warning: Variable "D" does not seem to be initialized
I think that this warning should be generated in the uncommented version as well.
Without a warning, there should only be a variant with the use of a constructor or other initial value assignment.
|Tags||No tags attached.|
|Fixed in Revision|
In FPC 3.2.0, there is no warning in both cases, so the problem is present.
Is the use of a global variable instead of Self in line 16 intentional, or is it just a copy-paste error?
||Is it needed that an advanced record is initialized by a constructor? It could be also initalized by the DoSomething call, no?|