diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/g++.dg/template/crash84.C')
-rw-r--r-- | gcc-4.8/gcc/testsuite/g++.dg/template/crash84.C | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc-4.8/gcc/testsuite/g++.dg/template/crash84.C b/gcc-4.8/gcc/testsuite/g++.dg/template/crash84.C index c42f85ce5..103e90a70 100644 --- a/gcc-4.8/gcc/testsuite/g++.dg/template/crash84.C +++ b/gcc-4.8/gcc/testsuite/g++.dg/template/crash84.C @@ -5,7 +5,7 @@ template<typename T> struct a { template <template <typename> class C, typename X, C<X>* =0> - struct b // { dg-error "class C' is not a template|is not a valid type" } + struct b { }; }; @@ -13,7 +13,8 @@ template<typename T> struct a void foo () { - a<int> v; // { dg-message "required from here" } + a<int> a1; // OK + a<int>::b<a,int> b1; // { dg-error "template argument" } } - +// { dg-prune-output "invalid type in declaration" } |