http://llvm.org/bugs/show_bug.cgi?id=18907

            Bug ID: 18907
           Summary: Assertion failed: "InstantiateClass shouldn't fail
                    here!" at
                    lib\Sema\SemaTemplateInstantiateDecl.cpp:1193
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Repro as of r201768:
-----------------
template <typename T>
class C : public C<int> {};

template <typename X, typename Y>
void F(Y *obj, long (Y::*method)()) {
  struct A : C<X> {};
}

struct B {
  long f();
  void g() { F<int>(this, &B::f); }
};

-----------------

-- 
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

Reply via email to