* cgraphunit.c (cgraph_decide_is_function_needed): Don't always
output static aliases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183475
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-01-24 Jason Merrill <jason@redhat.com>
+
+ PR c++/51812
+ * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
+ output static aliases.
+
2012-01-24 Jakub Jelinek <jakub@redhat.com>
PR driver/47249
to change the behavior here. */
if (((TREE_PUBLIC (decl)
|| (!optimize
+ && !node->same_body_alias
&& !DECL_DISREGARD_INLINE_LIMITS (decl)
&& !DECL_DECLARED_INLINE_P (decl)
&& !(DECL_CONTEXT (decl)
+2012-01-24 Jason Merrill <jason@redhat.com>
+
+ PR c++/51812
+ * g++.dg/inherit/covariant20.C: New.
+
2012-01-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51223
--- /dev/null
+// PR c++/51812
+// { dg-do link }
+
+class Object {
+ virtual Object* clone() const;
+};
+class DNA: virtual public Object {
+ virtual DNA* clone() const {return new DNA(*this);}
+};
+int main() { }