[Bug cobol/126393] ICE: symbols_update: data item ... capacity rejected

simonsobisch at gnu dot 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=126393

--- Comment #3 from Simon Sobisch <simonsobisch at gnu dot org> ---
updated stack for the second example:

internal compiler error: symbols_update: data item Group #1076 'Z01-SHMKEY-RED'
capacity 2 rejected
  167 |       /
      | ^
0x26c7730 emit_diagnostic_valist(diagnostics::kind, unsigned long,
diagnostics::option_id, char const*, __va_list_tag (*) [1])
        /home/so/gcc-cobol/gcc/diagnostic-global-context.cc:135
0xba9c36 cbl_internal_error(char const*, ...)
        /home/so/gcc-cobol/gcc/cobol/util.cc:3890
0xb9d34b symbols_update(unsigned long, bool)
        /home/so/gcc-cobol/gcc/cobol/symbols.cc:1938
0xb233ad data_division_ready
        /home/so/gcc-cobol/gcc/cobol/parse_ante.h:3602
0xb233ad yyparse()
        /home/so/gcc-cobol/gcc/cobol/parse.y:1609
0xbaf824 parse_file
        /home/so/gcc-cobol/gcc/cobol/util.cc:3822
0xbaf824 cobol_parse_files(int, char const**)
        /home/so/gcc-cobol/gcc/cobol/util.cc:3877

This _may_ be related to the non-standard (but commonly accepted) issue of:

- 01 level with OCCURS
- additional: that field REDEFINES another field
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.