Menu

Output error by different version cobol

M_D
2021-10-07
2021-10-08
  • M_D

    M_D - 2021-10-07

    Hi everyone,

    I am using Centos 8.

    when i launch the compiler i have this output for the gnucobol version 3.0-rc, gnucobol version 3.1.2 and gnucobol version 3.2-dev:

    [303494]$ bash compil-MDGFK10.sh
    COMPILATION DE > ./MDGFK10.cob
    In file included from /tmp/cob14930_0.c:24:
    /tmp/cob14930_0.c.h:172:44: error: « a_xx » non déclaré ici (hors de toute fonction); vouliez-vous utiliser « a_xx » ?
     static cob_field f_392 = {1, b_350 + 634, &a_xx}; /* INDICE */
                                                ^~~~
                                                a_xx
    

    But in version 4.0-early
    the compiler works.

    [303494]$ bash compil-MDGFK10.sh
    COMPILATION DE > ./MDGFK10.cob
    

    Here is the code reproduced in attachment .

    Thank for your help.

     

    Last edit: M_D 2021-10-07
  • Simon Sobisch

    Simon Sobisch - 2021-10-07

    Definitely an error in cobc. Will inspect for a fix in 4.x; placed in the next que.
    Thanks for the report.

    Note: if that's a clear bug like this one you may directly create a bug report.
    https://sourceforge.net/p/gnucobol/bugs/

     
  • M_D

    M_D - 2021-10-08

    Thanks for your response @sf-mensch

     

Anonymous
Anonymous

Add attachments
Cancel