Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Régis Cridlig
Subject: FPC compiler bug: functional parameter invocation
Date: 3 Apr 2008, 14:25:42
What is the latest stable release of gpc? I am using gcc version 3.4.4 -- Regis 2008/4/3, Russell Whitaker <russ@ashlandhome.net>: > > > > On Thu, 3 Apr 2008, Prof A Olowofoyeku (The African Chief) wrote: > > On 3 Apr 2008 at 10:59, Régis Cridlig wrote: > > > > Hello! > > > > > > This short program compiles without a warning, but crashes at > > > execution. > > > The compiler is FPC 2.2 on the win32 platform. > > > > > ^^^^^^^ > Hmmm, can you run FPC using gpc as the command? > Anyway, program compiles and runs using latest gpc on linux platform. > > Hope this helps > Russ > > 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. > > > > > > This is the compiler command: > > > $ gpc --classic-pascal -g -Wall crashes.p > > > > Which GPC version are you using? > >
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| The Chief | FPC compiler bug: functional parameter invocation | 4 Apr 2008, 00:16:15 |
| Régis Cridlig | FPC compiler bug: functional parameter invocation | 4 Apr 2008, 13:43:16 |
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).