aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor13.C
blob: 299db88326834a8951ffc4f12e25f550ce9ed698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/55753
// { dg-do compile { target c++11 } }

struct A
{
  double r,i;
  constexpr A(double r = 0.0, double i = 0.0): r(r), i(i) {}
};

template <typename Tp>
struct B {
  B() {
    A((true ? 1.0 : A()));
  }
};