Hello, Please confirm if this is a bug.
When I try to compile the unit below I get the error: "generics_bug.pas(14,43) Fatal: Internal error 2012101001" It seems the compiler has bug when handling forward generics declaration. Tested on: Debian Jessie amd64 - fpc 3.0.2 === CODE === *unit* generics_bug; {$mode delphi} *interface* *type* IGenericInterface<T> = *interface*; // Forward TGenericClass<T> = *class* *private* FGenericInterface: IGenericInterface<T>; *end*; IGenericInterface<T> = *interface* *end*; *implementation* *end*. === Regards
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal