Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/aggr3.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/92869 // { dg-do compile { target c++11 } } struct A { A () = default; A (const A &) = default; A (A &&) = default; int arr[3]; }; template <typename T, int N> struct B { B () = default; B (const B &) = default; B (B &&) = default; T arr[N]; }; A a = { { 1, 2, 3 } }; // { dg-error "could not convert" "" { target c++2a } } B<int, 3> b = { { 1, 2, 3 } }; // { dg-error "could not convert" "" { target c++2a } }