From: Jakub Jelinek Date: Tue, 4 Dec 2018 13:31:11 +0000 (+0100) Subject: typename1.C: Don't expect any diagnostics for C++2a. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0232f69fa23bfe5d51535ef20730200430cb567f;p=gcc.git typename1.C: Don't expect any diagnostics for C++2a. * g++.old-deja/g++.oliva/typename1.C: Don't expect any diagnostics for C++2a. * g++.old-deja/g++.oliva/typename2.C: Likewise. From-SVN: r266779 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a72b5f9c13..c274003231f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2018-12-04 Jakub Jelinek + * g++.old-deja/g++.oliva/typename1.C: Don't expect any diagnostics + for C++2a. + * g++.old-deja/g++.oliva/typename2.C: Likewise. + PR tree-optimization/88285 * gcc.dg/predict-22.c: Only compile on freorder targets. diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/typename1.C b/gcc/testsuite/g++.old-deja/g++.oliva/typename1.C index 83569dd3f3a..d76b66b8823 100644 --- a/gcc/testsuite/g++.old-deja/g++.oliva/typename1.C +++ b/gcc/testsuite/g++.old-deja/g++.oliva/typename1.C @@ -12,5 +12,5 @@ template struct bar { }; template struct baz { - typedef bar::foo foo; // { dg-error "" } missing typename + typedef bar::foo foo; // { dg-error "need 'typename' before" "" { target c++17_down } } }; diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/typename2.C b/gcc/testsuite/g++.old-deja/g++.oliva/typename2.C index 86512c983f4..dc0d7395012 100644 --- a/gcc/testsuite/g++.old-deja/g++.oliva/typename2.C +++ b/gcc/testsuite/g++.old-deja/g++.oliva/typename2.C @@ -23,6 +23,6 @@ template struct bar { }; template struct baz { - typedef bar::foo foo; // { dg-error "" } implicit typename + typedef bar::foo foo; // { dg-error "need 'typename' before" "" { target c++17_down } } void m(foo); };