aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype9.C
blob: 9db3db039a220ead1530068a07549ef02c80f71b (plain)
1
2
3
4
5
6
7
8
9
// PR c++/34271
// { dg-do compile { target c++11 } }

template<int> struct A
{
  static int i;
};

template<int N> int A<N>::i(decltype (A::i));	// { dg-error "member function|must be an expression" }