https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108553
Bug ID: 108553 Summary: GM2 ICEs on mistyped command line options Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- When mistyping -Wreturn-type as -Wereturn-type the compiler ICEs because we segfault in #5 0x0000000000c19cfd in gm2_langhook_init_options (decoded_options_count=7, decoded_options=0x429a190) at /home/rguenther/src/trunk/gcc/m2/gm2-lang.cc:296 296 fprintf(stderr, "%s : %s\n", opt, (arg ? arg : "")); (gdb) l 291 /* FALLTHROUGH */ 292 default: 293 if (code >= N_OPTS) 294 { 295 // FIXME remove debug. 296 fprintf(stderr, "%s : %s\n", opt, (arg ? arg : "")); 297 break; 298 } 299 /* Do not pass Modula-2 args to the preprocessor, any that we care 300 about here should already have been handled above. */ (gdb) p opt $2 = 0x6874616d5f656661 <error: Cannot access memory at address 0x6874616d5f656661> Note code is OPT_SPECIAL_unknown here.