[fpc-pascal] Two possible generics bugs

Sven Barth pascaldragon at googlemail.com
Sat Nov 30 18:51:49 CET 2019


Am 28.11.2019 um 16:14 schrieb Ryan Joseph via fpc-pascal:
> {$mode objfpc}
>
> program test;
> uses
>    FGL;
>
> // Type identifier expected
> // Internal error 2019112401
> generic function CopyList<T>(source: specialize FGL.TFPGObjectList<T>): specialize FGL.TFPGObjectList<T>;
> begin
> end;
>
> begin
> end.
>
What option did you use to compile it? What platform did you use? Cause 
I can't reproduce the internal error...

=== code begin ===

PS C:\fpc\git> .\compiler\ppcx64.exe -n -Furtl\units\x86_64-win64 -viwn 
-FEtestoutput .\tests\tbf\tb0272.pp
Target OS: Win64 for x64
Compiling .\tests\tbf\tb0272.pp
tb0272.pp(9,52) Error: Type identifier expected
tb0272.pp(9,87) Error: Type identifier expected
tb0272.pp(15) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted

=== code end ===

Regards,
Sven


More information about the fpc-pascal mailing list