[Bug cobol/120804] FR: allow SET of numeric-display variables

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120804

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by James K. Lowden <[email protected]>:

https://gcc.gnu.org/g:b36454ad89d2b3c455e4f2033c860aa62549a289

commit r17-2836-gb36454ad89d2b3c455e4f2033c860aa62549a289
Author: James K. Lowden <[email protected]>
Date:   Thu Jul 30 18:41:05 2026 -0400

    cobol: New warning to allow REDEFINES anywhere in data item definition.

    The new warning -Wredefines-first (an error by default) allows the
    user to reduce the error to a warning, or suppress it.  Suppression is
    automatic with -dialect mf.

    gcc/cobol/ChangeLog:

            PR cobol/120804
            * cbldiag.h (enum cbl_diag_id_t): Add MfRedefinesFirst.
            * cobol1.cc (cobol_langhook_handle_option): Handle option.
            * gcobol.1: Document option.
            * lang-specs.h: Add -Wredefines-first to spec string.
            * lang.opt: Add option.
            * messages.cc: Add option to dialect map.
            * parse.y: Error message depends on option value.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.