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

            Bug ID: 17514
           Summary: [-cxx-abi microsoft] Assertion `CurFn->isDeclaration()
                    && "Function already has body?"
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            Blocks: 12477
    Classification: Unclassified

This is basically the same as http://llvm.org/bugs/show_bug.cgi?id=7142, but
slightly different.

Reduced test case (thanks creduce!) is:

template <class _Ty1> struct A {
  _Ty1 first;
};
template <typename> class F;
template <typename> class B {
protected:
  A<F<int> > *destroyAll_P;
};
template <typename KeyT> class G : B<KeyT> {
public:
  G() { destroyAll_P->first.~KeyT(); }
};
class C {
protected:
  virtual ~C();
};
class D {
  G<F<int> > Map;
};
template <typename> class F : C {};
void fn1() { D a; }

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