https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108769
Bug ID: 108769
Summary: [C++20] __is_trivial returns true even if a default
constructor's constrains are unsatisfied
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: roi.jacobson1 at gmail dot com
Target Milestone: ---
GCC accepts this code:
template <class T>
struct S {
S() requires false = default;
};
static_assert(__is_trivial(S<int>));
There are some related DRs that GCC doesn't implement (like DR1363), but I
don't think this falls under any of them.