2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58923
* g++.dg/other/virtual3.C: New.
From-SVN: r221640
+2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58923
+ * g++.dg/other/virtual3.C: New.
+
2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60130
--- /dev/null
+// PR c++/58923
+
+struct A
+{
+ virtual void do_it() const = 0;
+};
+
+struct B : A
+{
+ virtual void do_it() const {}
+};
+
+struct C
+{
+ operator B() const { return B(); }
+};
+
+void do_it(const A& a) { a.do_it(); }
+
+int main()
+{
+ C c;
+ do_it(c);
+ return 0;
+}