diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/crash6.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash6.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash6.C b/gcc/testsuite/g++.dg/template/crash6.C new file mode 100644 index 000000000..776e01ebb --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash6.C @@ -0,0 +1,8 @@ +template <class> struct A { static const int n = 1; } ; +template <int> struct B; + +template <class S> +struct restype_order { + static const int s = A<S>::n; + typedef typename B<(s > 0)>::t t; +}; |