[fpc-devel] Unhelpful error message

Sven Barth pascaldragon at googlemail.com
Sun Dec 2 15:21:51 CET 2012


On 02.12.2012 13:11, Henry Vermaak wrote:
>
> On Dec 2, 2012 11:47 AM, "Mark Morgan Lloyd"
> <markMLl.fpc-devel at telemetry.co.uk
> <mailto:markMLl.fpc-devel at telemetry.co.uk>> wrote:
>  >
>  > I've just had a slight problem compiling Lazarus where FPC was
> reporting this:
>  >
>  > main.pp(5001,1) Fatal: Syntax error, "BEGIN" expected but "shl" found
>  >
>
> << is shl in c. I guess fpc accepts this syntax, too?

Yes, "<<" and ">>" are converted in scanner stage to "shl" and "shr" 
which will give me headaches once I want to support nested 
specializations (basically the same problem that C++ had):

TTest<TTest<TObject>> // !!!

Regards,
Sven




More information about the fpc-devel mailing list