[Bug d/89017] New: ICE in force_type_die, at dwarf2out.c:26061

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Wed Jan 23 17:01:00 GMT 2019


            Bug ID: 89017
           Summary: ICE in force_type_die, at dwarf2out.c:26061
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

With option -g :

$ cat z1.d
auto f(T)()
  struct A(S)
    class A
      void g(){}
  return A!int();
void test1()

$ gdc-9-20190120 -c z1.d
$ gdc-9-20190120 -c z1.d -Og
$ gdc-9-20190120 -c z1.d -g
during RTL pass: final
z1.d: In function 'g':
z1.d:7:16: internal compiler error: in force_type_die, at dwarf2out.c:26061
    7 |       void g(){}
      |                ^
0x87f14a force_type_die
0x87f35b get_context_die
0x87f35b force_decl_die
0x877efc gen_subprogram_die
0x87a354 gen_decl_die
0x87aec6 dwarf2out_decl
0x87b4ee dwarf2out_function_decl
0x8e6459 rest_of_handle_final
0x8e6459 execute

More information about the Gcc-bugs mailing list