public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/99323] New: [9/10/11 Regression] ICE in add_hint, at diagnostic-show-locus.c:2234
@ 2021-03-01 17:03 gscfq@t-online.de
  2021-03-02  7:37 ` [Bug c/99323] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: gscfq@t-online.de @ 2021-03-01 17:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99323

            Bug ID: 99323
           Summary: [9/10/11 Regression] ICE in add_hint, at
                    diagnostic-show-locus.c:2234
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

With testfile gcc.c-torture/compile/limits-externdecl.c
and options -Wall -no-integrated-cpp, started with r8 :


$ gcc-11-20210228 -c limits-externdecl.c -no-integrated-cpp
$
$ gcc-11-20210228 -c limits-externdecl.c -Wall -no-integrated-cpp
limits-externdecl.c:55:26: warning: missing braces around initializer
[-Wmissing-braces]
   55 | REFERENCE references[] = {
      |                          ^
   56 |   LIM5 (X)

limits-externdecl.c:58:1: internal compiler error: in add_hint, at
diagnostic-show-locus.c:2234
   58 | };
      | ^
0x15769cf add_hint
        ../../gcc/diagnostic-show-locus.c:2233
0x15769cf print_trailing_fixits
        ../../gcc/diagnostic-show-locus.c:2316
0x15769cf print_line
        ../../gcc/diagnostic-show-locus.c:2555
0x15769cf diagnostic_show_locus(diagnostic_context*, rich_location*,
diagnostic_t)
        ../../gcc/diagnostic-show-locus.c:2637
0x6e9ef5 c_diagnostic_finalizer
        ../../gcc/c-family/c-opts.c:175
0x157029b diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/diagnostic.c:1251
0x157091e diagnostic_impl
        ../../gcc/diagnostic.c:1406
0x1572272 warning_at(rich_location*, int, char const*, ...)
        ../../gcc/diagnostic.c:1558
0x662913 pop_init_level(unsigned int, int, obstack*, unsigned int)
        ../../gcc/c/c-typeck.c:8839
0x684a0a c_parser_braced_init
        ../../gcc/c/c-parser.c:5280
0x686d1e c_parser_initializer
        ../../gcc/c/c-parser.c:5201
0x694e3a c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2276
0x69c717 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1777
0x69d239 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1650
0x69d239 c_parse_file()
        ../../gcc/c/c-parser.c:21984
0x6ed0a2 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1218

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

end of thread, other threads:[~2023-07-07  9:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01 17:03 [Bug c/99323] New: [9/10/11 Regression] ICE in add_hint, at diagnostic-show-locus.c:2234 gscfq@t-online.de
2021-03-02  7:37 ` [Bug c/99323] " rguenth at gcc dot gnu.org
2021-03-02  9:51 ` [Bug c/99323] [9/10/11 Regression] ICE in add_hint, at diagnostic-show-locus.c:2234 since r8-379-gd1b5f5cc3cfd148e marxin at gcc dot gnu.org
2021-03-02 10:12 ` marxin at gcc dot gnu.org
2021-03-02 14:31 ` dmalcolm at gcc dot gnu.org
2021-03-02 20:47 ` cvs-commit at gcc dot gnu.org
2021-03-02 20:50 ` [Bug c/99323] [9/10 " dmalcolm at gcc dot gnu.org
2021-04-30  8:09 ` rguenth at gcc dot gnu.org
2021-06-01  8:19 ` rguenth at gcc dot gnu.org
2022-05-27  9:44 ` [Bug c/99323] [10 " rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07  9:29 ` rguenth 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).