<div dir="ltr"><div><div>Hi,<br><br></div>I have found a bug with generics. It exists in 2.6.4 but not in 2.7.1 (rev 27862). I searched in bug tracker but can't find a corresponding bug report. Should I report it or consider it's fixed ?<br>
<br></div><div>Program :<br></div><div>------------------------------------<br>program genbug_002;<br><br>{$mode objfpc}{$h+}<br><br>uses<br>  Classes, SysUtils;<br>  <br>type<br>  { TAbstractVector }<br>  TAbstractVector = class<br>
  end;<br>  <br>  { TGenVector }<br>  generic TGenVector<_TItem_> = class(TAbstractVector)  // ERROR<br>  end;<br><br>  TStringVector = class(specialize TGenVector<String>)<br>  end;<br>  <br>begin<br><br>end.<br>
------------------------------------<br><br></div>Error message :<br><div>------------------------------------<br>Free Pascal Compiler version 2.6.4 [2014/03/03] for i386<br>Copyright (c) 1993-2014 by Florian Klaempfl and others<br>
Target OS: Linux for i386<br>Compiling genbug_002.pas<br>genbug_002.pas(14,54) Error: Identifier not found "TAbstractVector"<br>genbug_002.pas(14,54) Error: class type expected, but got "<erroneous type>"<br>
genbug_002.pas(25) Fatal: There were 2 errors compiling module, stopping<br>Fatal: Compilation aborted<br>Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)<br>------------------------------------<br>
</div></div>