aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-defer5.C
blob: a83d40b292427e7ab170b5468d2b293784d1c2ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/51666 (DR 325)
// { dg-do compile { target c++11 } }

template<typename T, typename U>
struct tuple
{
  tuple(T, U) { }
};

struct Y
{
  tuple<int, int> tt = tuple<int, int>{1, 2};
};

struct A
{
  int i = 0;
  int j = i < 42, k;		// OK, declares j and k
  int l = i < 42, 24;		// { dg-error "" }
};