[PATCH] D45898: [SemaCXX] Mark destructor as referenced
Orivej Desh via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 9 04:26:41 PST 2018
orivej added a comment.
I have noticed that this change breaks seemingly valid code:
class A { protected: ~A(); };
struct B : A {};
B f() { return B(); }
B g() { return {}; }
`f` compiles, but `g` fails with `temporary of type 'A' has protected destructor`. (g++ 8.2 compiles this file.)
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D45898/new/
https://reviews.llvm.org/D45898
More information about the cfe-commits
mailing list