From: Marek Polacek Date: Wed, 30 Jan 2019 02:32:33 +0000 (+0000) Subject: re PR testsuite/89110 (r268343 breaks several tests in c++2a) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dca2770bc073353e621e426d4803b8ea16382b5a;p=gcc.git re PR testsuite/89110 (r268343 breaks several tests in c++2a) PR testsuite/89110 * g++.dg/other/nontype-1.C: Expect error in all modes. * g++.dg/parse/crash13.C: Likewise. * g++.dg/parse/error36.C: Likewise. * g++.dg/template/error29.C: Likewise. From-SVN: r268376 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 45e3c7f917b..5387957db9c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-01-29 Marek Polacek + + PR testsuite/89110 + * g++.dg/other/nontype-1.C: Expect error in all modes. + * g++.dg/parse/crash13.C: Likewise. + * g++.dg/parse/error36.C: Likewise. + * g++.dg/template/error29.C: Likewise. + 2019-01-29 Thomas Koenig PR fortran/57048 diff --git a/gcc/testsuite/g++.dg/other/nontype-1.C b/gcc/testsuite/g++.dg/other/nontype-1.C index 8d90c322a7e..11bbfb82968 100644 --- a/gcc/testsuite/g++.dg/other/nontype-1.C +++ b/gcc/testsuite/g++.dg/other/nontype-1.C @@ -1,7 +1,7 @@ template bool asfun(Op f, - Op::first_argument_type a, // { dg-error "not a type" "" { target c++17_down } } - Op::second_argument_type b) // { dg-error "not a type" "" { target c++17_down } } + Op::first_argument_type a, // { dg-error "not a type" } + Op::second_argument_type b) // { dg-error "not a type" } { return Op(a, b); } diff --git a/gcc/testsuite/g++.dg/parse/crash13.C b/gcc/testsuite/g++.dg/parse/crash13.C index 7a4939a462d..3c298ec8ede 100644 --- a/gcc/testsuite/g++.dg/parse/crash13.C +++ b/gcc/testsuite/g++.dg/parse/crash13.C @@ -12,11 +12,11 @@ struct A }; template -void func(A::B* ) // { dg-error "variable|template|expression" "" { target c++17_down } } +void func(A::B* ) // { dg-error "variable|template|expression" } { } int main() { - func(0); // { dg-error "not declared|expression|;" "" { target c++17_down } } + func(0); // { dg-error "not declared|expression|;" } } diff --git a/gcc/testsuite/g++.dg/parse/error36.C b/gcc/testsuite/g++.dg/parse/error36.C index 7e52d1537e0..bf57a6b68ce 100644 --- a/gcc/testsuite/g++.dg/parse/error36.C +++ b/gcc/testsuite/g++.dg/parse/error36.C @@ -25,7 +25,7 @@ template struct B // PR c++/40738 template -void g(const A::type &t); // { dg-error "typename" "" { target c++17_down } } +void g(const A::type &t); // { dg-error "typename" } // PR c++/18451 template A::B A::b; // { dg-error "typename" "" { target c++17_down } } diff --git a/gcc/testsuite/g++.dg/template/error29.C b/gcc/testsuite/g++.dg/template/error29.C index 6e335487224..2e2291d7e87 100644 --- a/gcc/testsuite/g++.dg/template/error29.C +++ b/gcc/testsuite/g++.dg/template/error29.C @@ -1,5 +1,5 @@ // PR c++/33209 -template void foo(int, T::x); // { dg-error "T::x" "" { target c++17_down } } +template void foo(int, T::x); // { dg-error "T::x" } -template class T> void foo2(int, T::x); // { dg-error "T::x" "" { target c++17_down } } +template class T> void foo2(int, T::x); // { dg-error "T::x" }