[LLVMbugs] [Bug 24305] New: Assertion failure in clang regression test

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 29 10:48:04 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24305

            Bug ID: 24305
           Summary: Assertion failure in clang regression test
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sunil_srivastava at playstation.sony.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Following example, trimmed from
llvm/tools/clang/test/CXX/class/class.union/p1.cpp gives assertion failure with
-std=c++11

$ cat p1.cpp
class CopyCtor { 
  CopyCtor(CopyCtor &cc);
};
template <class A, class B> struct Either {
  bool tag;
  union {
    A a;
    B b;
  };
  Either(const A& a) : tag(true), a(a) {}
};
void fred() {
  Either<int,CopyCtor> copyctor(0);
}

$ clang++ -S -std=c++11 p1.cpp

…/llvm/tools/clang/include/clang/AST/DeclCXX.h:909: void
clang::CXXRecordDecl::setImplicitMoveConstructorIsDeleted(): Assertion
`(data().DefaultedMoveConstructorIsDeleted ||
needsOverloadResolutionForMoveConstructor()) && "move constructor should not be
deleted"' failed.
…..
clang version 3.8.0 (trunk 243453)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
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/20150729/49d4f87f/attachment.html>


More information about the llvm-bugs mailing list