|
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,
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
[Prev in Thread] | Current Thread | [Next in Thread] |