<div dir="ltr"><div>Hello,<br><br></div><div>Please confirm if this is a bug. <br><br></div><div><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">When I try to compile the unit below I get the error:<br><br>"generics_bug.pas(14,43) Fatal: Internal error 2012101001"<br><br></span></span></div><div><span id="gmail-result_box" class="gmail-" lang="en"><span class="gmail-">It seems the compiler has bug when handling forward generics declaration.</span></span><br><br></div><div>Tested on: Debian Jessie amd64 - fpc 3.0.2<br></div><div><br></div>=== CODE === <br><span style="font-family:monospace,monospace"><br></span><div><span style="font-family:monospace,monospace"><b>unit</b> generics_bug;<br><br>{$mode delphi}<br><br><b>interface</b><br><br><br><b>type</b><br><br>  IGenericInterface<T> = <b>interface</b>; // Forward    <br><br>  TGenericClass<T> = <b>class</b><br>  <b>private</b><br>    FGenericInterface: IGenericInterface<T>;    <br>  <b>end</b>;        <br>    <br>  IGenericInterface<T> = <b>interface</b><br>  <b>end</b>;     <br>    <br>  <br><b>implementation</b><br><br><b>end</b>.</span><br><br>=== <br><br><br></div><div>Regards<br></div></div>