[LLVMbugs] [Bug 11003] New: clang cannot find a conversion in c++0x mode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 23 20:14:43 PDT 2011


           Summary: clang cannot find a conversion in c++0x mode
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

gcc can compile the following code in c++ 98 and 0x modes. clang only in 98:

class Value {
struct MoveRef {
  operator Value &() const ;
MoveRef Move(int);
void growTo() {
  Value x = Move(0);
  Value y(Move(0)); // no viable conversion from 'MoveRef' to 'Value'

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