diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/crash14.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash14.C | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash14.C b/gcc/testsuite/g++.dg/template/crash14.C new file mode 100644 index 000000000..cf6fffa1a --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash14.C @@ -0,0 +1,5 @@ +// { dg-options -std=c++98 } + +template <int T> class foo { public: foo() { } class Z { };}; +template <int I[2]> void dep7(foo<I[0]> *) { } // { dg-error "" } + |