GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #14313

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Régis Cridlig
Subject: GPC compiler bug: functional parameter invocation
Date: 4 Apr 2008, 15:23:12

I have attached the assembly code generated by the command: gpc crashes.p -S
It is only two pages :-)


2008/4/4, Régis Cridlig <cridlig@gmail.com>:
> Have you tried with Cygwin?
>
>  2008/4/4, Prof A Olowofoyeku (The African Chief) <chiefsoft@bigfoot.com>:
>
> > On 4 Apr 2008 at 14:10, Régis Cridlig  wrote:
>  >  > Thank you, I succeeded in installing the latest cygwin build:
>  >  > gpc-20070904.i686-pc-cygwin.tar.gz
>  >
>  > [...]
>  >
>  >  > What is going wrong?
>  >
>  >  I don't know. It works perfectly fine here:
>  >
>  >  bash-3.00 /f/gpc> cat crash.pas
>  >
>  > program Crashes(input,output);
>  >
>  >  function B(l:integer):boolean;
>  >  begin
>  >         B:=true;
>  >  end;
>  >
>  >  procedure Q(j:integer;function A(l:integer):boolean);
>  >
>  >         function E(l:integer):boolean;
>  >         begin
>  >                 E := false
>  >         end;
>  >
>  >   begin
>  >         if A(j) then
>  >             Q(200,E);
>  >   end;
>  >
>  >  begin
>  >         Q(100,B);
>  >  end.
>  >
>  > bash-3.00 /f/gpc> gpc crash.pas -Wall -g -o crash.exe
>  >  bash-3.00 /f/gpc> gdb crash.exe
>  >  GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
>  >  Copyright 2004 Free Software Foundation, Inc.
>  >
>  > GDB is free software, covered by the GNU General Public License, and you
>  >  are
>  >  welcome to change it and/or distribute copies of it under certain
>  >  conditions.
>  >  Type "show copying" to see the conditions.
>  >  There is absolutely no warranty for GDB.  Type "show warranty" for
>  >  details.
>  >  This GDB was configured as "i686-pc-cygwin"...
>  >  (gdb) run
>  >
>  > Starting program: /f/gpc/crash.exe
>  >
>  >  Program exited normally.
>  >  (gdb)
>  >
>  >
>  >  Best regards, The Chief
>  >  --------
>  >  Prof. Abimbola A. Olowofoyeku (The African Chief)
>  >  web:  http://www.greatchief.plus.com/
>  >
>  >
>  >

File attachment

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Waldek Hebisch GPC compiler bug: functional parameter invocation 5 Apr 2008, 02:29:03

In reply to

Author Subject Date
Régis Cridlig GPC compiler bug: functional parameter invocation 4 Apr 2008, 14:10:25
The Chief GPC compiler bug: functional parameter invocation 4 Apr 2008, 23:04:21
Régis Cridlig GPC compiler bug: functional parameter invocation 4 Apr 2008, 15:19:21

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).