8sa1-gcc/gcc/testsuite/g++.dg/cpp1z/using4.C
Paolo Carlini eeebb022b2 re PR c++/88986 (ICE: tree check: expected tree that contains 'decl minimal' structure, have 'error_mark' in member_vec_binary_search, at cp/name-lookup.c:1136)
/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
2019-02-13 10:34:49 +00:00

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>;