]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-ex4.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ex4.C
CommitLineData
4b2e63de 1// { dg-do compile { target c++11 } }
fa2200cb
JM
2
3struct A
4{
5 constexpr A(int) { }
d0ff1cb4 6 constexpr operator int() const { return 1; };
fa2200cb
JM
7};
8
9template <class T>
10struct B
11{
12 static constexpr A a = A(1);
13 int ar[a];
14};
15
16B<int> b;
This page took 6.312434 seconds and 5 git commands to generate.