diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/init2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/init2.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/init2.C b/gcc/testsuite/g++.dg/template/init2.C new file mode 100644 index 000000000..b81e4be94 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/init2.C @@ -0,0 +1,10 @@ +// PR c++/9820 + +template <typename T> struct X { + template<typename> static int test(...); + template<typename> static int test(int *); + + static const int i = sizeof(X<T>::template test<int>(0)); +}; + +template class X<int>; |