bug-gnucobol
[Top][All Lists]
Advanced

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

[open-cobol-list] I would like to report a Bug


From: Robert Sherry
Subject: [open-cobol-list] I would like to report a Bug
Date: Thu Apr 28 13:08:13 2005

    Please consider the following code fragment:
            ENVIRONMENT DIVISION.
            INPUT-OUTPUT SECTION.
            FILE-CONTROL.
               SELECT OUT-FILE ASSIGN OUTPUT1.

In this case, we are assigning the file OUT-FILE to the name specified by
the variable OUTPUT1. However, with the open source compiler if the variable
OUTPUT1 is never defined then no error message is produced and the generated
C code does not compile. I believe that this is a bug in the compiler and I
am currently working on a fix for it. Also consider the statement:
        SELECT OUT-FILE ASSIGN "OUTPUT1".
In this case, OUT-FILE is assigned to the file OUTPUT1. This works and it
does not matter whether or not OUTPUT1 is defined as a variable. I also feel
that this should work as is. 

I am looking for comments from the group.

Bob Sherry



reply via email to

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