Re: [fpc-devel] Unhelpful error message

2012-12-03 Thread Henry Vermaak
On 03/12/12 01:19, Hans-Peter Diettrich wrote: > message is sufficient. But a check for a third "<" definitely should be > added to the scanner, so that a more specific error message can be issued. Not worth the effort, in my opinion. I understood the error message immediately. Henry ___

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: What error message do you expect? Something that recognises that a message like <<< .mine originates from the project's chosen VCS, and that <<< is distinct from shl. +1 A concatenation of the *binary* "<" or "<<" operators, into "...", doesn't mak

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Sven Barth
On 02.12.2012 17:11, Alexander Klenin wrote: On Sun, Dec 2, 2012 at 6:21 PM, Sven Barth wrote: On 02.12.2012 13:11, Henry Vermaak wrote: 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

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Alexander Klenin
On Sun, Dec 2, 2012 at 6:21 PM, Sven Barth wrote: > On 02.12.2012 13:11, Henry Vermaak wrote: > 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>

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Sven Barth
On 02.12.2012 13:11, Henry Vermaak wrote: On Dec 2, 2012 11:47 AM, "Mark Morgan Lloyd" mailto:markmll.fpc-de...@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" foun

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Sven Barth
On 02.12.2012 15:05, Mark Morgan Lloyd wrote: Mattias Gaertner wrote: On Sun, 02 Dec 2012 11:46:54 + Mark Morgan Lloyd 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 The reason w

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: On Sun, 02 Dec 2012 11:46:54 + Mark Morgan Lloyd 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 The reason was that I'd not spotted that Subversion had in

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Mattias Gaertner
On Sun, 02 Dec 2012 11:46:54 + Mark Morgan Lloyd 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 > > The reason was that I'd not spotted that Subversion had inserted a like l

Re: [fpc-devel] Unhelpful error message

2012-12-02 Thread Henry Vermaak
On Dec 2, 2012 11:47 AM, "Mark Morgan Lloyd" < markmll.fpc-de...@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, t

[fpc-devel] Unhelpful error message

2012-12-02 Thread Mark Morgan Lloyd
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 The reason was that I'd not spotted that Subversion had inserted a like like < Mine: preceding a function. Is this something that the compil