[llvm-bugs] [Bug 32097] New: is_abstract fails for class templates.
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Feb 28 16:02:13 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=32097
Bug ID: 32097
Summary: is_abstract fails for class templates.
Product: libc++
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Reproducer:
// clang++ -stdlib=libc++ -std=c++11 test.cpp
#include <type_traits>
class A { virtual void test() = 0; };
static_assert(std::is_abstract<A>::value, "Correctly passes");
template <class> class B { virtual void test() = 0; };
static_assert(std::is_abstract<B<int>>::value, "Fails unexpectedly!");
int main() {}
--
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/20170301/71d3b371/attachment.html>
More information about the llvm-bugs
mailing list