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
This commit is contained in:
parent
fa29266c1d
commit
0232f69fa2
3 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
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.
|
||||
|
||||
|
|
|
@ -12,5 +12,5 @@ template <class T> struct bar {
|
|||
};
|
||||
|
||||
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 {
|
|||
};
|
||||
|
||||
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);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue