summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/decltype9.C
blob: 4cd150ea6cfb53cb8dfd270035406a0cbe171c81 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/34271
// { dg-do compile }
// { dg-options "-std=c++0x" }

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" }