PR bootstrap/66448
* toplev.c (check_global_declaration): Don't warn about a clone.
From-SVN: r224285
+2015-06-09 Jason Merrill <jason@redhat.com>
+
+ PR bootstrap/66448
+ * toplev.c (check_global_declaration): Don't warn about a clone.
+
2015-06-09 Marek Polacek <polacek@redhat.com>
PR tree-optimization/66299
--- /dev/null
+// PR bootstrap/66448
+// { dg-options "-Wunused-function" }
+
+struct A { A(); };
+namespace {
+ struct B: virtual A { B(); };
+ B::B() { }
+ B b;
+
+ struct C: virtual A { C(); };
+ C::C() { } // { dg-warning "defined but not used" }
+}
&& ! (DECL_NAME (decl) && TREE_USED (DECL_NAME (decl)))
&& ! DECL_EXTERNAL (decl)
&& ! DECL_ARTIFICIAL (decl)
+ && ! DECL_ABSTRACT_ORIGIN (decl)
&& ! TREE_PUBLIC (decl)
/* A volatile variable might be used in some non-obvious way. */
&& ! TREE_THIS_VOLATILE (decl)