aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/cond8.C
blob: a3bad7e7beda085340278cf5cc733bfe294cfa4e (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/51318

enum { e0, e1 };

template<bool B, int = B ? e0 : e1> struct A {};

template<typename T> struct B
{
  A<T::X> a;
};