public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/108553] New: GM2 ICEs on mistyped command line options
@ 2023-01-26  8:29 rguenth at gcc dot gnu.org
  2023-01-26  8:32 ` [Bug modula2/108553] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-26  8:29 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-01-27  8:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26  8:29 [Bug modula2/108553] New: GM2 ICEs on mistyped command line options rguenth at gcc dot gnu.org
2023-01-26  8:32 ` [Bug modula2/108553] " rguenth at gcc dot gnu.org
2023-01-26  8:38 ` iains at gcc dot gnu.org
2023-01-26  9:10 ` iains at gcc dot gnu.org
2023-01-26  9:46 ` marxin at gcc dot gnu.org
2023-01-26 12:47 ` rguenth at gcc dot gnu.org
2023-01-26 16:30 ` cvs-commit at gcc dot gnu.org
2023-01-27  7:44 ` rguenth at gcc dot gnu.org
2023-01-27  8:45 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).