Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-09

wrong line for deprecated

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

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?

Reply by email