[fpc-devel] A lot of stuff broke, looking for advice
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Mon Jul  8 16:50:15 CEST 2013
    
    
  
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
    
    
More information about the fpc-devel
mailing list