OSDN Git Service

PR c++/37256
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / decltype9.C
1 // PR c++/34271
2 // { dg-do compile }
3 // { dg-options "-std=c++0x" }
4
5 template<int> struct A
6 {
7   static int i;
8 };
9
10 template<int N> int A<N>::i(decltype (A::i));   // { dg-error "member function|must be an expression" }