Re: [fpc-devel] Crash in TWriter with read only class property = nil

2021-05-21 Thread Martin Frb via fpc-devel
On 21/05/2021 21:42, Michael Van Canneyt via fpc-devel wrote: Definitely a bug. It should not crash. Please file a bugreport... Done https://bugs.freepascal.org/view.php?id=38920 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.

Re: [fpc-devel] Crash in TWriter with read only class property = nil

2021-05-21 Thread Michael Van Canneyt via fpc-devel
On Fri, 21 May 2021, Martin Frb via fpc-devel wrote: If you have a readonly property such as (tested with 3.2.2 rc)   TMyComponent = class(TComponent)   private     FFoo: TComponent;   published     property ReadOnly: TComponent read FFoo;   end; and FFoo is nil, then TWriter will crash. Is

[fpc-devel] Crash in TWriter with read only class property = nil

2021-05-21 Thread Martin Frb via fpc-devel
If you have a readonly property such as (tested with 3.2.2 rc)   TMyComponent = class(TComponent)   private     FFoo: TComponent;   published     property ReadOnly: TComponent read FFoo;   end; and FFoo is nil, then TWriter will crash. Is the above scenario forbidden to be implemented (and ther