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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
with

> ./cc1plus -quiet t.ii -flto
during IPA pass: modref
t.ii:3:24: internal compiler error: in get_partitioning_class, at symtab.c:2095
    3 | int main() { return r; }
      |                        ^
0x1111438 symtab_node::get_partitioning_class()
        /home/rguenther/src/gcc3/gcc/symtab.c:2095
0x159f81c lto_output_varpool_node
        /home/rguenther/src/gcc3/gcc/lto-cgraph.c:622
0x15a079e output_symtab()
        /home/rguenther/src/gcc3/gcc/lto-cgraph.c:989
0x15bd1bd lto_output()
        /home/rguenther/src/gcc3/gcc/lto-streamer-out.c:2813
0x16a3a79 write_lto
        /home/rguenther/src/gcc3/gcc/passes.c:2761
(gdb) p node->debug()
i/3 (i) @0x7ffff66c1100
  Type: variable
  Body removed by symtab_remove_unreachable_nodes
  Visibility: semantic_interposition artificial
  References: 
  Referring: r/1 (addr) 
  Availability: not_available
  Varpool flags:
$2 = void

so we somehow remove the variable because either the DECL_INITIAL walks do not
work or because the C++ FE screws up in setting things up.

Reply via email to