[fpc-devel] wrong line for deprecated

Martin lazarus at mfriebe.de
Sat Sep 10 09:20:09 CEST 2011


Just noticed the following

program Project1;
var a: integer deprecated;
begin
   if 1 = a
   then writeln;
end.

project1.lpr(5,3) Warning: Symbol "a" is deprecated

Which points to the "then" on the line after "a" is used. (even if the 
lines a joined, it always points to the next token)
If a is declared as function, the message points to the begin of "a"

While absolutely minor, and not a problem => shall I put it in mantis?




More information about the fpc-devel mailing list