summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alias-decl-54.C
blob: faac46782dd037b92e69bcab18341fa7f8f8f86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/55992
// { dg-do compile { target c++11 } }

template <int> struct A { };

template <int I>
struct B
{
  static constexpr int f (int i) { return i; }

  template <int J>
  using C = A<f (J)>;

  C<I> c;
};