2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-24 17:41:42 +08:00

c++: Adjust expected diagnostics for old-deja tests [PR99008]

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.
This commit is contained in:
Patrick Palka 2021-04-13 15:40:08 -04:00
parent 34ec63f1b5
commit 96d73645c7
3 changed files with 4 additions and 4 deletions
gcc/testsuite/g++.old-deja

@ -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 }
}

@ -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 }
}

@ -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 }
}