re PR c++/88986 (ICE: tree check: expected tree that contains 'decl minimal' structur...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 13 Feb 2019 10:34:49 +0000 (10:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 13 Feb 2019 10:34:49 +0000 (10:34 +0000)
commiteeebb022b22ec51557bc1c731dc168d58c6e1cd3
treec844cf39cd063eef35ab6d93d10efc6d758b5328
parent3e7f831c2a312ce3c8b0a60417a896203dcbbf56
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
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/using4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/using5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/using6.C [new file with mode: 0644]