https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127074
Bug ID: 127074
Summary: ICE compiling CBL_CHECK_FILE_EXIST.cob during 'gmake
check-cobol'
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: cobol
Assignee: unassigned at gcc dot gnu.org
Reporter: kargl at gcc dot gnu.org
Target Milestone: ---
After bootstrapping GCC with the cobol compiler produces the
following ICE during 'gmake check-cobol'. Apologies for the
long lines.
Executing on host: /home/kargl/gcc/obj/gcc/testsuite/cobol/../../gcobol
-B/home/kargl/gcc/obj/gcc/testsuite/cobol/../../
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/CBL_CHECK_FILE_EXIST.cob
-fdiagnostics-plain-output -fdiagnostics-plain-output -O0 -dialect mf
-B/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libgcobol
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libgcobol/.libs
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libquadmath/.libs
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libstdc++-v3/src/.libs -lm
-o ./CBL_CHECK_FILE_EXIST.exe (timeout = 300)
spawn -ignore SIGHUP /home/kargl/gcc/obj/gcc/testsuite/cobol/../../gcobol
-B/home/kargl/gcc/obj/gcc/testsuite/cobol/../../
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/CBL_CHECK_FILE_EXIST.cob
-fdiagnostics-plain-output -fdiagnostics-plain-output -O0 -dialect mf
-B/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libgcobol
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libgcobol/.libs
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libquadmath/.libs
-L/home/kargl/gcc/obj/x86_64-unknown-freebsd16.0/./libstdc++-v3/src/.libs -lm
-o ./CBL_CHECK_FILE_EXIST.exe
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/CBL_CHECK_FILE_EXIST.cob:31:19:
internal compiler error: datetime_format_of:124: DATETIME-FMT: empty
(sub)expression
0x29b37d1 emit_diagnostic_valist(diagnostics::kind, unsigned long,
diagnostics::option_id, char const*, __va_list_tag (*) [1])
../../gcc/gcc/diagnostic-global-context.cc:135
0xb76cfa cbl_internal_error(char const*, ...)
../../gcc/gcc/cobol/util.cc:3876
0xb2cf48 datetime_format_of
../../gcc/gcc/cobol/scan_post.h:124
0xb2cf48 typed_name
../../gcc/gcc/cobol/scan_ante.h:1268
0xb3237d lexer()
../../gcc/gcc/cobol/scan.l:2659
0xb43260 next_token
../../gcc/gcc/cobol/scan_post.h:264
0xb43260 prelex()
../../gcc/gcc/cobol/scan_post.h:272
0xb43812 yylex()
../../gcc/gcc/cobol/scan_post.h:434
0xae7538 yyparse()
cobol/parse.cc:20768
0xb77c9c parse_file
../../gcc/gcc/cobol/util.cc:3808
0xb77c9c cobol_parse_files(int, char const**)
../../gcc/gcc/cobol/util.cc:3863
/home/kargl/gcc/obj/gcc/testsuite/cobol/../../cobol1
/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/CBL_CHECK_FILE_EXIST.cob
-quiet -dialect mf -dumpdir ./ -dumpbase CBL_CHECK_FILE_EXIST.cob -dumpbase-ext
.cob
-main=/home/kargl/gcc/gcc/gcc/testsuite/cobol.dg/group2/CBL_CHECK_FILE_EXIST.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 -dialect mf -o
/tmp/ccSCCLSl.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
compiler exited with status 1