gcc/cp/ChangeLog:
PR c++/42766
* cvt.c (build_expr_type_conversion): Look through OVERLOAD.
gcc/testsuite/ChangeLog:
PR c++/42766
* g++.dg/conversion/op6.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156020
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-01-18 Dodji Seketeli <dodji@redhat.com>
+
+ PR c++/42766
+ * cvt.c (build_expr_type_conversion): Look through OVERLOAD.
+
2010-01-17 Dodji Seketeli <dodji@redhat.com>
PR c++/42697
int win = 0;
tree candidate;
tree cand = TREE_VALUE (conv);
+ cand = OVL_CURRENT (cand);
if (winner && winner == cand)
continue;
+2010-01-18 Dodji Seketeli <dodji@redhat.com>
+
+ PR c++/42766
+ * g++.dg/conversion/op6.C: New test.
+
2010-01-18 Uros Bizjak <ubizjak@gmail.com>
PR target/42774
--- /dev/null
+// Origin: PR c++/42766
+// { dg-do compile }
+
+template<class T> class smart_pointer {
+public:
+ operator T* () const { }
+ operator bool () const { }
+ operator bool () { }
+};
+class Context { };
+typedef smart_pointer<Context> ContextP;
+class SvnClient {
+ ~SvnClient();
+ ContextP svnContext;
+};
+SvnClient::~SvnClient() {
+ delete svnContext;
+}