[fpc-pascal] Forward Generic Type Declaration Bug
African Wild Dog
paintedlycaon at gmail.com
Sat Mar 18 19:20:25 CET 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170318/4f47419d/attachment.html>
More information about the fpc-pascal
mailing list