c++: Adjust expected diagnostics for old-deja tests [PR99008]
authorPatrick Palka <ppalka@redhat.com>
Tue, 13 Apr 2021 19:40:08 +0000 (15:40 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 13 Apr 2021 19:40:08 +0000 (15:40 -0400)
I missed adjusting these tests in the recently committed r11-8155.

gcc/testsuite/ChangeLog:

PR c++/99008
* g++.old-deja/g++.ns/crash3.C: Adjust expected diagnostic.
* g++.old-deja/g++.ns/template7.C: Likewise.
* g++.old-deja/g++.pt/crash8.C: Likewise.

gcc/testsuite/g++.old-deja/g++.ns/crash3.C
gcc/testsuite/g++.old-deja/g++.ns/template7.C
gcc/testsuite/g++.old-deja/g++.pt/crash8.C

index 189298d..b5e6323 100644 (file)
@@ -6,6 +6,6 @@ namespace N {
 
 void f()
 {
-  N::S(); // { dg-error "6:cannot deduce template arguments" "" { target c++17 } } invalid use of template
+  N::S(); // { dg-error "8:class template argument deduction failed|no match" "" { target c++17 } } invalid use of template
   // { dg-error "7:missing template arguments" "" { target c++14_down } .-1 }
 }
index 71366b7..441a412 100644 (file)
@@ -8,6 +8,6 @@ namespace foo {
 }
 
 void baz() {
-  foo::bar(); // { dg-error "8:cannot deduce template arguments" "" { target c++17 } } template used as expression
+  foo::bar(); // { dg-error "12:class template argument deduction failed|no match" "" { target c++17 } } template used as expression
   // { dg-error "11:missing template arguments" "" { target c++14_down } .-1 }
 }
index 7b4eff5..678a728 100644 (file)
@@ -21,11 +21,11 @@ void doit(T x) {
   q2 = TestClass2<T>();
 
   TestClass1<T> p1;
-  p1 = TestClass1(); // { dg-error "8:cannot deduce template arguments" "" { target c++17 } } template used as expression
+  p1 = TestClass1(); // { dg-error "19:class template argument deduction failed|no match" "" { 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 "8:cannot deduce template arguments" "" { target c++17 } } template used as expression
+  p2 = TestClass2(); // { dg-error "19:class template argument deduction failed|no match" "" { target c++17 } } template used as expression
   // { dg-error "18:missing template arguments" "" { target c++14_down } .-1 }
 }