Commit ce473498 by Nathan Sidwell Committed by Nathan Sidwell

[PR c++/83667] Fix tree_dump ICE

https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00148.html
	PR c++/83667
	* method.c (make_alias_for): Copy DECL_CONTEXT.

	PR c++/83667
	* g++.dg/ipa/pr83667.C: New.

From-SVN: r256179
parent fa9544ab
2018-01-03 Nathan Sidwell <nathan@acm.org>
PR c++/83667
* method.c (make_alias_for): Copy DECL_CONTEXT.
2018-01-03 Marek Polacek <polacek@redhat.com>
PR c++/83592
......
......@@ -206,7 +206,7 @@ make_alias_for (tree target, tree newid)
TREE_CODE (target), newid, TREE_TYPE (target));
DECL_LANG_SPECIFIC (alias) = DECL_LANG_SPECIFIC (target);
cxx_dup_lang_specific_decl (alias);
DECL_CONTEXT (alias) = NULL;
DECL_CONTEXT (alias) = DECL_CONTEXT (target);
TREE_READONLY (alias) = TREE_READONLY (target);
TREE_THIS_VOLATILE (alias) = TREE_THIS_VOLATILE (target);
TREE_PUBLIC (alias) = 0;
......
2018-01-03 Nathan Sidwell <nathan@acm.org>
PR c++/83667
* g++.dg/ipa/pr83667.C: New.
2018-01-03 Martin Liska <mliska@suse.cz>
PR tree-optimization/83593
......
/* { dg-options "-fdump-ipa-inline" } */
// c++/83667 ICE dumping a static thunk
struct a
{
virtual ~a ();
};
struct b
{
virtual void d (...);
};
struct c : a, b
{
void d (...)
{
}
};
c c;
// { dg-final { scan-ipa-dump "summary for void c::\\*.LTHUNK0" "inline" } }
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