[LLVMbugs] [Bug 10219] New: UNREACHABLE: unexpected type in nested name specifier!
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jun 28 11:22:40 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: zilla at kayari.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list