https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127412
--- Comment #1 from Steve Kargl <kargl at gcc dot gnu.org> ---
Further down in the cobol.log file, I see several additional icon_open errors
and eventually a ICE.
FAIL: cobol.dg/group2/FUNCTION_CONVERT.cob -O0 (test for excess errors)
Excess errors:
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/FUNCTION_CONVERT.cob:19:20:
error: iconv_open: cannot convert to 'CP1140' from 'CP1252'
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/FUNCTION_CONVERT.cob:19:20:
error: iconv_open: cannot convert to 'CP1140' from 'CP1252'
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/FUNCTION_CONVERT.cob:19:37:
error: cannot convert from 'UTF-8' to 'CP1140': Invalid argument
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/FUNCTION_CONVERT.cob:19:37:
error: cannot convert from 'CP1252' to 'CP1140': Invalid argument
cobol1: internal compiler error: Segmentation fault
0x2a1f25b internal_error(char const*, ...)
../../gcc/gcc/diagnostic-global-context.cc:787
0x1255f57 crash_signal
../../gcc/gcc/toplev.cc:325
0x829e7f97b handle_signal
/usr/src/lib/libthr/thread/thr_sig.c:317
0x829e7ef8a thr_sighandler
/usr/src/lib/libthr/thread/thr_sig.c:261
0x7b62ee cbl_field_t::encode(unsigned long, cbl_loc_t)
../../gcc/gcc/cobol/symbols.cc:4423
0xb37d32 yyparse()
../../gcc/gcc/cobol/parse.y:5280
0xbb785c parse_file
../../gcc/gcc/cobol/util.cc:3857
0xbb785c cobol_parse_files(int, char const**)
../../gcc/gcc/cobol/util.cc:3912
/home/kargl/gcc/obj/gcc/testsuite/cobol/../../cobol1
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/FUNCTION_CONVERT.cob -quiet
-dumpdir ./ -dumpbase FUNCTION_CONVERT.cob -dumpbase-ext .cob
-main=/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/FUNCTION_CONVERT.cob
-mtune=generic -march=x86-64 -O0 -fdiagnostics-color=never
-fdiagnostics-urls=never -fdiagnostics-path-format=separate-events
-fdiagnostics-text-art-charset=none -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-path-format=separate-events
-fdiagnostics-text-art-charset=none -fno-diagnostics-show-event-links
-fno-diagnostics-show-nesting -B /home/kargl/gcc/obj/gcc/testsuite/cobol/../../
-B /home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libgcobol -o
/tmp/ccRmBtdB.s