Sign in Join

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

Mailing lists / fpc-pascal / 2004-11

reporting bugs? ... fpc 1.9.4 crash

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

David Emerson

Is there a better place to post bugs, outside the list?

Well, regardless, here it is...

fpc 1.9.4 crashes with the following source. Of course, my bug was easy enough to find/fix, but it looks bad when the compiler crashes! Not a bug in 1.0.10.

Synopsis: index variable "ix" has not been declared. Try to access an array element via this index, and write said element to a file.

var
   array_of_longint : array [0..5] of longint;
   longint_file : file of longint;
begin
   for ix := 0 to 5 do
      write (longint_file, array_of_longint[ix]);   // line 7
end.

Free Pascal Compiler version 1.9.4 [2004/05/30] for i386 Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Win32 for i386
Compiling test.pas
test.pas(6,6) Error: Identifier not found "ix"
test.pas(7,41) Error: Identifier not found "ix"
Compilation aborted test.pas:7
Runtime error 216 at $00472D7B
$00472D7B
$00474F32
$004C95E0
$004C96A1
$0046B074
$0046A501
$0046C445
$0046C456
$0046C456
$0046C456

Paul Davidson
to David Emerson

If you are in TB or DELPHI mode, then IX may be defined as a CPU register

David Emerson wrote 50 lines
Is there a better place to post bugs, outside the list? Well, regardless, here it is... fpc 1.9.4 crashes with the following source. Of course, my bug was easy enough to find/fix, but it looks bad when the compiler crashes! Not a bug in 1.0.10. Synopsis: index variable "ix" has not been declared. Try to access an array element via this index, and write said element to a file. var array_of_longint : array [0..5] of longint; longint_file : file of longint; begin for ix := 0 to 5 do write (longint_file, array_of_longint[ix]); // line 7 end. Free Pascal Compiler version 1.9.4 [2004/05/30] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Target OS: Win32 for i386 Compiling test.pas test.pas(6,6) Error: Identifier not found "ix" test.pas(7,41) Error: Identifier not found "ix" Compilation aborted test.pas:7 Runtime error 216 at $00472D7B $00472D7B $00474F32 $004C95E0 $004C96A1 $0046B074 $0046A501 $0046C445 $0046C456 $0046C456 $0046C456 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

P Davidson
Corax Networks Inc.
http://CoraxNetworks.com