[LLVMbugs] [Bug 11766] New: clang c++ ambigious conversion by constructor and operator
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 14 10:12:58 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11766
Bug #: 11766
Summary: clang c++ ambigious conversion by constructor and
operator
Product: clang
Version: 2.8
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: robercik_st at interia.pl
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Code below doesn't issue a warning about ambigious conversion of Orange to
Apple.
class Orange;
class Apple {
public:
Apple(){}
Apple(const Orange &){}
};
class Orange {
public:
operator Apple() {
return Apple();
}
};
void z(Apple){}
int main( int argc,char **argv ) {
Orange a;
z(a);
}
--
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