http://llvm.org/bugs/show_bug.cgi?id=10219
Summary: UNREACHABLE: unexpected type in nested name specifier!
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
struct Nosm
{
int m_R;
};
namespace dx {
struct onc
{
typedef void(*Cb)();
onc(Cb cb);
};
struct grac
{
template<class Derived> static void once();
};
template<class Derived>
struct tonc : onc
{
tonc() : onc(&grac::once<Derived>) {}
static Derived& get();
};
template<class Derived> void grac::once()
{
tonc<Derived>::get().h();
}
}
namespace
{
template<typename T, int = sizeof(&T::m_R)>
struct has_R { };
template<typename T>
inline void
setR(T* m, has_R<T>* = 0)
{ }
inline void setR(...) { }
}
template<typename M>
struct Qmi
: dx::tonc<Qmi<M> >
{
void h()
{
setR(&msg);
}
M msg;
};
Qmi<Nosm> x;
--
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