OSDN Git Service

PR c++/51475 - ICE with invalid initializer-list
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / vt-33964.C
1 // { dg-options "-std=c++0x" }
2 template<typename ... Args>
3 struct foo
4 {
5     static bool const value = true;
6 };
7
8 template<typename ... Args>
9 struct foo< typename Args::is_applied... > // { dg-error "not used|Args" }
10 {
11     static bool const value = false;
12 };
13
14 struct not_applied { typedef void is_applied; };
15 struct applied { typedef applied is_applied; };
16
17 int main()
18 {
19     foo<applied, applied> i;
20 }