From e49d321f033c35d907d9d3eb339efaa6a8ba1e52 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 19 Jan 2016 12:59:58 +0100 Subject: re PR lto/69136 (ICE in lto_symtab_prevailing_virtual_decl, at lto/lto-symtab.c:991) PR lto/69136 * lto-symtab.c (lto_symtab_prevailing_virtual_decl): Abstract decls have no assemblernames. * g++.dg/torture/pr69136.C: New testcase. From-SVN: r232553 --- gcc/lto/ChangeLog | 6 ++++++ gcc/lto/lto-symtab.c | 2 ++ 2 files changed, 8 insertions(+) (limited to 'gcc/lto') diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 430dcfe..952ebd4 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2016-01-19 Jan Hubicka + + PR lto/69136 + * lto-symtab.c (lto_symtab_prevailing_virtual_decl): Abstract + decls have no assemblernames. + 2016-01-19 Martin Liska Martin Jambor diff --git a/gcc/lto/lto-symtab.c b/gcc/lto/lto-symtab.c index b22dea8..94b919b 100644 --- a/gcc/lto/lto-symtab.c +++ b/gcc/lto/lto-symtab.c @@ -990,6 +990,8 @@ lto_symtab_merge_symbols (void) tree lto_symtab_prevailing_virtual_decl (tree decl) { + if (DECL_ABSTRACT_P (decl)) + return decl; gcc_checking_assert (!type_in_anonymous_namespace_p (DECL_CONTEXT (decl)) && DECL_ASSEMBLER_NAME_SET_P (decl)); -- cgit v1.1