On 08 Jul 2013, at 16:39, Anthony Walter wrote:
Here is an example:
{ TObjectList<TItem: TObject> = class(TIndexedList<TItem>) }
bare.types.pas(1176,1) procedure/function constructor
Create(Boolean);An
unhandled exception occurred at $0816975E:
bare.types.pas(1182,1) procedure/function procedure Clone:TObject;
Fatal: Compilation aborted
Error: ppc386 returned an error exitcode
Well, the compiler crashing with an unhandled exception is obviously
always a compiler bug, rather than an indication that backward
compatibility has been purposefully broken. The interleaved output of
the unhandled exception and the errors is also strange.
{ TObjectList<TItem> }
constructor TObjectList<TItem>.Create(OwnsObjects: Boolean);
begin // line 1176
inherited Create;
FOwnsObjects := OwnsObjects;
end;
function TObjectList<TItem>.Clone: TObject;
begin
Result := TObjectList<TItem>.Create(False);
Assign(Result, Self);
end;
Please file a bug report with complete code that can be fed to the
compiler to reproduce the crash.
Jonas
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel