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