/cp 2019-02-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/88986 * decl.c (make_typename_type): Allow for TYPE_PACK_EXPANSION as context (the first argument). * pt.c (tsubst, case TYPENAME_TYPE): Handle TYPE_PACK_EXPANSION as context. /testsuite 2019-02-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/88986 * g++.dg/cpp1z/using4.C: New. * g++.dg/cpp1z/using5.C: Likewise. * g++.dg/cpp1z/using6.C: Likewise. From-SVN: r268839
13 lines
295 B
C
13 lines
295 B
C
// PR c++/88986
|
|
// { dg-do compile { target c++11 } }
|
|
// { dg-options "" }
|
|
|
|
struct B { typedef int type; };
|
|
|
|
template<typename ...T> struct C : T... {
|
|
using typename T::type ...; // { dg-warning "pack expansion" "" { target c++14_down } }
|
|
void f() { type value; }
|
|
};
|
|
|
|
template struct C<B>;
|