bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-GnuCOBOL] Compiling a function ends in a msg from the C-compoil


From: Edward Hart
Subject: Re: [Bug-GnuCOBOL] Compiling a function ends in a msg from the C-compoiler
Date: Sat, 22 Apr 2017 14:23:27 +0100

Hi Harald,

This bug was fixed in r1375. The compiler now emits the error "RETURNING item is not defined in LINKAGE SECTION".

The OpenCOBOL-IDE will likely not include this fix until GnuCOBOL 2.0-rc3 is released.

Edward

On 21 April 2017 at 11:10, Harald Cordes | ITGAIN <address@hidden> wrote:

Hi,

 

I was just testing a GNU-COBOL-IDE I found in the internet.

I typed in some lines which I hoped it is COBOL

but I’m not sure if it is correct COBOL 2002 syntax.

 

       IDENTIFICATION DIVISION.

       FUNCTION-ID. TEST2.

       data division.

       working-storage section.

       01  erg pic 9(18) binary value 4711.

       procedure division returning erg.

       main.

           exit function.

       END FUNCTION TEST2.

 

Compiling this stuff ends in a message from the C-compiler:

/tmp/cob6919_0.c: In function ‘TEST2_’:

/tmp/cob6919_0.c:109: error: incompatible types in assignment

 

Please have a look, if this is COBOL or if we can get a syntax error msg from the COBOL compiler.

 

Version:

Built     Apr 12 2017 11:00:55

Packaged  Nov 06 2016 22:36:19 UTC

C version "4.3.2 [gcc-4_3-branch revision 141291]"

 

Operating system – uname -a:

Linux j2u-devel-hc 2.6.27.54-0.2-default #1 SMP 2010-10-19 18:40:07 +0200 x86_64 x86_64 x86_64 GNU/Linux

 

Best regards,

   Harald Cordes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]