1 // PR c++/28235
2 
3 template<typename> struct A
4 {
5   static const bool i = true;
6   template<bool = i> struct B {};
7   B<> b;
8 };
9 
f()10 void f() {
11   A<int> a1, a2;
12   a1.b = a2.b;
13 }
14