PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / vt-33964.C
blob8cbc0d6478d642590fd07fd786a4db6951a24a31
1 // { dg-do compile { target c++11 } }
2 template<typename ... Args>
3 struct foo
5     static bool const value = true;
6 };
8 template<typename ... Args>
9 struct foo< typename Args::is_applied... > // { dg-error "not deducible|Args" }
11     static bool const value = false;
14 struct not_applied { typedef void is_applied; };
15 struct applied { typedef applied is_applied; };
17 int main()
19     foo<applied, applied> i;