[PATCH] D92936: [Sema] Fix deleted function problem in implicitly movable test
Arthur Eubanks via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 1 16:52:16 PST 2021
aeubanks added a comment.
This broke
struct A {
A();
A(A&&)=delete;
private:
A(const A&);
friend class B;
};
struct B {
A foo() {
A a;
return a;
}
};
with
/tmp/a.cc:12:12: error: call to deleted constructor of 'A'
return a;
^
/tmp/a.cc:3:3: note: 'A' has been explicitly marked deleted here
A(A&&)=delete;
^
1 error generated.
is this intentional?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92936/new/
https://reviews.llvm.org/D92936
More information about the cfe-commits
mailing list