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
+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
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
--- /dev/null
+/* { 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" } }