summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/static27.C
blob: 0b63967e35214bd4d1f358509ccd1790488d83db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/28235

template<typename> struct A
{
  static const bool i = true;
  template<bool = i> struct B {};
  B<> b;
};

void f() {
  A<int> a1, a2;
  a1.b = a2.b;
}