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: unassignedclangb...@nondot.org
          Reporter: e...@efcs.ca
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to