* 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
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
* gcc.dg/predict-22.c: Only compile on freorder targets.
};
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 } }
};
};
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);
};