// PR c++/34271 // { dg-do compile { target c++11 } } template struct A { static int i; }; template int A::i(decltype (A::i)); // { dg-error "member function|must be an expression" }