http://llvm.org/bugs/show_bug.cgi?id=20096
Bug ID: 20096
Summary: class with pure virtuals makes it non-destructible
(unlike libstdc++)
Product: libc++
Version: 3.4
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
$ clang++ -std=c++11 -stdlib=libstdc++ -I/path/to/gcc48/include/c++ a.cc
$ clang++ -std=c++11 -stdlib=libc++ a.cc
a.cc:11:3: error: static_assert failed "A"
static_assert(std::is_destructible<A>::value, "A");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
$ cat a.cc
#include <type_traits>
class A
{
public:
virtual int B() const = 0;
};
int main()
{
static_assert(std::is_destructible<A>::value, "A");
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs