[Bug c++/92869] [10 Regression] C++17 wrongly reports aggregate type as not-aggregate (when explicitly defaulted ctors are added)
igor.chorazewicz at intel dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 13:03:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92869
--- Comment #5 from Igor Chorazewicz <igor.chorazewicz at intel dot com> ---
Ok, but P1816R0 talks about argument deduction - in my example I specify all
template arguments for A, so should this fail?
Moreover, for g++ 10 and g++ 9.2 even the following, non-template code fails
for -std=c++2a
struct A {
A() = default;
A(const A &) = default;
A(A &&) = default;
int arr[3];
};
int main()
{
A a = {{1,2,3}};
}
More information about the Gcc-bugs
mailing list