Commit e49d321f by Jan Hubicka Committed by Jan Hubicka

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
parent e9191ad3
2016-01-19 Jan Hubicka <hubicka@ucw.cz>
PR lto/69136
* lto-symtab.c (lto_symtab_prevailing_virtual_decl): Abstract
decls have no assemblernames.
2016-01-19 Martin Liska <mliska@suse.cz>
Martin Jambor <mjambor@suse.cz>
......
......@@ -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));
......
2016-01-19 Jan Hubicka <hubicka@ucw.cz>
PR lto/69136
* g++.dg/torture/pr69136.C: New testcase.
2016-01-19 Jan Hubicka <hubicka@ucw.cz>
PR lto/69133
* g++.dg/lto/pr69133_0.C: New testcase.
* g++.dg/lto/pr69133_1.C: New testcase.
......
// { dg-do compile }
class GrBufferAllocPool {
virtual ~GrBufferAllocPool();
};
GrBufferAllocPool::~GrBufferAllocPool() { static long a; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment