[LLVMbugs] [Bug 17514] New: [-cxx-abi microsoft] Assertion `CurFn->isDeclaration() && "Function already has body?"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 8 17:13:12 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: rnk at google.com
                CC: llvmbugs at cs.uiuc.edu
            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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131009/5d829a17/attachment.html>


More information about the llvm-bugs mailing list