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:
parent
34ec63f1b5
commit
96d73645c7
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 }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user