1 // PR c++/51666 (DR 325) 2 // { dg-do compile { target c++11 } } 3 4 template<typename T, typename U> 5 struct tuple 6 { tupletuple7 tuple(T, U) { } 8 9 static const int x = 3; 10 int var = tuple<T,U>::x; 11 }; 12 13 struct Y 14 { 15 tuple<int, int> tt = tuple<int, int>{1, 2}; 16 }; 17 18 struct A 19 { 20 int i = 0; 21 int j = i < 42, k; // OK, declares j and k 22 int l = i < 42, 24; // { dg-error "" } 23 }; 24