[Bug cobol/125171] [cobol] segmentation fault in program with 'EXIT PERFORM CYCLE' statement
simonsobisch at gnu dot org via Gcc-bugs <[email protected]> Mon, 03 Aug 2026 11:34:36 +0000
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D125171
--- Comment #3 from Simon Sobisch <simonsobisch at gnu dot org> ---
Still happens with current master (godbolt checked):
During GIMPLE pass: cfg
In function 'foo':
cobol1: internal compiler error: Segmentation fault
0x2803f18 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x27f8b5b internal_error(char const*, ...)
???:0
0x1254ea2 cleanup_dead_labels()
???:0
/cefs/f9/f9c5ac7782c416d83731970f_gcc-trunk-20260803/bin/../libexec/gcc/x86=
_64-linux-gnu/17.0.0/cobol1
<source> -quiet -dumpdir /app/output.s- -dumpbase example.cob -dumpbase-ext
.cob -main=3D<source> -mtune=3Dgeneric -march=3Dx86-64 -g -dialect gnu,mf -o
/tmp/cc36acM8.s=