diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash8.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash8.C | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash8.C b/gcc/testsuite/g++.old-deja/g++.pt/crash8.C index de2dd9dc7de..7b4eff595bf 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/crash8.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash8.C @@ -21,10 +21,12 @@ void doit(T x) { q2 = TestClass2<T>(); TestClass1<T> p1; - p1 = TestClass1(); // { dg-error "" } template used as expression + p1 = TestClass1(); // { dg-error "8:cannot deduce template arguments" "" { target c++17 } } template used as expression + // { dg-error "18:missing template arguments" "" { target c++14_down } .-1 } TestClass2<T> p2; - p2 = TestClass2(); // { dg-error "" } template used as expression + p2 = TestClass2(); // { dg-error "8:cannot deduce template arguments" "" { target c++17 } } template used as expression + // { dg-error "18:missing template arguments" "" { target c++14_down } .-1 } } int main() { |