[fpc-devel] very misleading error msg...

Martin lazarus at mfriebe.de
Sat Nov 13 14:59:51 CET 2010


(using the -Se 10 switch)

Compiling C:\Users\martin\AppData\Local\Temp\syn\project1.lpr
project1.lpr(9,5) Error: Illegal expression
project1.lpr(9,5) Fatal: Syntax error, "EXCEPT" expected but "identifier 
WRITELN" found

The illegal expression is ok.
But why saying that "Except" was expected? Imho that is misleading, 
since the source can continue with anything else here

Is that something that would be worth a report in mantis, in order to 
improve error msgs?


program Project1;
{$mode objfpc}{$H+}

var a: Integer;
begin
   try
     writeln();
     a
     writeln();
   finally
   end;
end.




More information about the fpc-devel mailing list