https://bugs.llvm.org/show_bug.cgi?id=40437
Bug ID: 40437
Summary: requires clause on a destructor produces invalid
result
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangb...@nondot.org
Reporter: antosh...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
Consider the example:
#include <type_traits>
template<typename T>
struct Y {
~Y() requires(std::is_trivially_destructible_v<T>) = default;
~Y() requires(!std::is_trivially_destructible_v<T>) {}
};
struct B { ~B(); };
static_assert(std::is_trivially_destructible_v<Y<B>>);
The static_assert passes, however Y should have non trivial destructor.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs