From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4826E3858D28; Thu, 26 Jan 2023 08:29:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4826E3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674721760; bh=6Qis7ZEtH/JWOUpmfYCmI/ou8PNa83CIbn/VvIadYHM=; h=From:To:Subject:Date:From; b=sopWpl1bQfLPj0qZRNIze4PsS+LkFFl4j90CYdT19JjSD+/Ba6t7EmTlk514zSGNH GlFL4lpm18jFADDgnZT3To/KACwQ2xMgZSrV2as7uG5Gcx9KHoLI6YPx6SkHYgM0i1 79lUS6fOPPpotCnR9hzB7UXye3FFGeDpAB/obhgo= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108553] New: GM2 ICEs on mistyped command line options Date: Thu, 26 Jan 2023 08:29:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108553 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= =3D7,=20 decoded_options=3D0x429a190) 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 >=3D 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 tha= t we care 300 about here should already have been handled above. */ (gdb) p opt $2 =3D 0x6874616d5f656661 Note code is OPT_SPECIAL_unknown here.=