http://llvm.org/bugs/show_bug.cgi?id=7080
Summary: Failure in is_convertible implementation in boost
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
The following code shows a reduced example of the is_convertible implementation
used in boost for the implementation of rvalue references. This code compiles
in g++ but doesn't compile in clang++.
template <class T, class U>
class is_convertible
{
typedef char true_t;
class false_t { char dummy[2]; };
static true_t dispatch(U);
static false_t dispatch(...);
static T trigger();
public:
enum { value = sizeof(dispatch(trigger())) == sizeof(true_t) };
};
template <class T>
class rv : public T
{ };
int main(void)
{ is_convertible<int, rv<int>&>::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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs