[llvm-bugs] [Bug 28978] New: Assertion in setImplicitMoveConstructorIsDeleted() fails

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 14 20:53:27 PDT 2016


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

            Bug ID: 28978
           Summary: Assertion in setImplicitMoveConstructorIsDeleted()
                    fails
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric at efcs.ca
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Between the 3.9 branch and ToT the assertion on DeclCXX.h:912 started firing
for this example:


// clang++ -std=c++14 -c test.cpp
struct None {
  None() = default;
  None(None const&) = delete;
  None& operator=(None const&) = delete;
};

template <class Tp>
struct BaseT {
    union { Tp __val_; };
    BaseT() : __val_() {}
};

BaseT<None> b;



Which results in 

> Assertion `(data().DefaultedMoveConstructorIsDeleted || needsOverloadResolutionForMoveConstructor()) && "move constructor should not be deleted"' failed.

-- 
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/20160815/4b2629ba/attachment.html>


More information about the llvm-bugs mailing list