[Bug c++/92869] [10 Regression] C++17 wrongly reports aggregate type as not-aggregate (when explicitly defaulted ctors are added)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 12:54:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92869
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
And the
template <typename T, __SIZE_TYPE__ N>
struct A {
A() = default;
A(const A &) = default;
A(A &&) = default;
T arr[N];
};
int main()
{
if (!__is_aggregate (A<int,3>))
__builtin_abort ();
}
testcase reduced from #c0 too.
More information about the Gcc-bugs
mailing list