Sign in Join

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

Mailing lists / fpc-devel / 2003-04

Compiler bug

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Johann Glaser

Hi!

I found a bug in the compiler. Please have a look at the attached program.

The Procedure "DoWhat contains three variables, each with an "absolute" statement.

The compiler accepts all these variable declarations without any error. Even using "-va" doesn't print anything there.

But when using the variables MyRR and Field it complains:

(~)$ fpc FPC-Bug.pas
Free Pascal Compiler version 1.0.6 [2002/08/10] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling FPC-Bug.pas
FPC-Bug.pas(15,11) Error: Identifier not found MYRR FPC-Bug.pas(15,16) Error: Illegal qualifier
FPC-Bug.pas(16,11) Error: Identifier not found FIELD FPC-Bug.pas(25) Fatal: There were 3 errors compiling module, stopping (~)$

Since "MyRR" and "Field" simply are "aliases" for the parameter, I think this should be allowed. It can simplify programming a lot.

Would it be possible to get this working?

Thanks
Hansi

Johann Glaser Vienna University of Technology Electrical Engineering ____ http://www.johann-glaser.at/ ____

Reply by email