PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype10.C
blob846d0bf57cf2aac18f4d3145e6d4121a38d731ee
1 // PR c++/34271
2 // { dg-do compile { target c++11 } }
4 template<int> struct A
6   static int i;
7 };
9 template<int N> int A<N>::i(decltype (A::i;     // { dg-error "expected primary-expression before" }