https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119229
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-03-12 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The issue is the frontend fails to finalize the global declaration. The variable is created via #0 0x0000000001085bc1 in gg_declare_variable ( type_decl=<integer_type 0x7ffff681c5e8>, name=0x3a3e0a9 "__gg__globals_are_initialized", initial_value=<tree 0x0>, vs_scope=vs_external_reference, already_defined=0x0) at /home/rguenther/src/gcc/gcc/cobol/gengen.cc:961 #1 0x0000000001028194 in parser_division (division=procedure_div_e, returning=0x0, nusing=0, args=0x0) at /home/rguenther/src/gcc/gcc/cobol/genapi.cc:6487 #2 0x00000000010a69a2 in procedure_division_ready (loc=..., returning=0x0, ffi_args=0x0) at /home/rguenther/src/gcc/gcc/cobol/parse_ante.h:3324 #3 0x00000000010b7fe3 in yyparse () at /home/rguenther/src/gcc/gcc/cobol/parse.y:4617 but only gg_append_var_decl eventually calls rest_of_decl_compilation.