Go to the first, previous, next, last section, table of contents.


10. Known Bugs in COBOL for GCC

10.1 Bugs to be Fixed

  1. The compiler is very incomplete in the function supported.
  2. The help option outputs a whole lot of c-specific options that are not relevant to COBOL. This is a bug in toplev.c in the gcc directory.
  3. To get help for the cobol compiler or cobol preprocessor, you need to do gcc -v --help X.cob where X.cob is the name of a file that exists. This is a bug or feature of toplev.c in the gcc directory.
  4. The test cases do not include a test for incorrect identifiers in text-2 of the copy verb.

10.2 Bugs Not to be Fixed

  1. Slightly invalid identifiers in COPY verb 'from' and 'to' are not flagged.
  2. cobpre1.c: Continuation tokens are spliced into the continued line, therefore error messages will refer to the first line. The standard does not require anything specific here. Similar problems occur with COPY and REPLACE - it unclear which line the error message should relate to.
  3. cobpre1.c: Continuation lines are allowed in comment-entries though the standard says they are not permitted. Warning issued.
  4. cobpre: somewhat liberal in its use of memory. Uses about 12mb to process 10,000 lines of code. This makes it a lot simpler to code though.


Go to the first, previous, next, last section, table of contents.