aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-inhctor1.C
blob: 98691101e860b90d6779cceaeb48ac479b0b9730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/58511
// { dg-do compile { target c++11 } }

struct A
{
  constexpr A(int, int = i) {}
  static const int i;
};

struct B : A
{
  using A::A;			// { dg-prune-output "A::i" }
};

constexpr B b(0);		// { dg-error "" }