]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-array4.C
aarch64: Further renaming of generic code
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-array4.C
CommitLineData
3748a54c 1// PR c++/49924
4b2e63de 2// { dg-do compile { target c++11 } }
3748a54c
JM
3
4struct A { constexpr A() { } };
5
6struct B {
7 A array[1]; //non-static member array of a literal type w constexpr ctor
8 constexpr B() : array{} { } // here is the problem
9};
10
11int main()
12{
13 constexpr B b{}; // won't compile
14}