Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-array6.C
blob48dae5d9609e15d0899b6d750fd1aff6213460a1
1 // PR c++/58611
2 // { dg-do compile { target c++11 } }
4 struct A
6   int i;
7   constexpr A() {}              // { dg-error "A::i" "" { target c++17_down } }
8 };
10 struct B
12   A a;
15 constexpr B b[] = { {} };       // { dg-error "A::A" "" { target c++17_down } }
16 // { dg-error "is not a constant expression" "" { target c++2a } .-1 }