[LLVMbugs] [Bug 7055] Constructor is not used for type conversion.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 10 08:17:04 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7055

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #6 from Douglas Gregor <dgregor at apple.com> 2010-08-10 10:17:04 CDT ---
Thank you! Reduced test case:

template<typename T>
struct auto_ptr {
  struct auto_ptr_ref { };

  auto_ptr(auto_ptr&);
  auto_ptr(auto_ptr_ref);
  explicit auto_ptr(T *);

  operator auto_ptr_ref();
};

struct X {
  X(auto_ptr<int>);
};

X f() {
  return X(auto_ptr<int>(new int));
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list