Commit 0232f69f by Jakub Jelinek Committed by Jakub Jelinek

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
parent fa29266c
2018-12-04 Jakub Jelinek <jakub@redhat.com> 2018-12-04 Jakub Jelinek <jakub@redhat.com>
* 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 PR tree-optimization/88285
* gcc.dg/predict-22.c: Only compile on freorder targets. * gcc.dg/predict-22.c: Only compile on freorder targets.
......
...@@ -12,5 +12,5 @@ template <class T> struct bar { ...@@ -12,5 +12,5 @@ template <class T> struct bar {
}; };
template <class T> struct baz { template <class T> struct baz {
typedef bar<T>::foo foo; // { dg-error "" } missing typename typedef bar<T>::foo foo; // { dg-error "need 'typename' before" "" { target c++17_down } }
}; };
...@@ -23,6 +23,6 @@ template <class T> struct bar { ...@@ -23,6 +23,6 @@ template <class T> struct bar {
}; };
template <class T> struct baz { template <class T> struct baz {
typedef bar<T>::foo foo; // { dg-error "" } implicit typename typedef bar<T>::foo foo; // { dg-error "need 'typename' before" "" { target c++17_down } }
void m(foo); void m(foo);
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment