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 "expected primary-expression before" } 11