re PR c++/62207 (ICE: tree check: expected tree that contains 'decl minimal' structur...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 1 Apr 2019 17:09:47 +0000 (17:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 1 Apr 2019 17:09:47 +0000 (17:09 +0000)
commit5ed22cbbfce94c6fca8e4247a74315aacb759918
tree91764802e7bfe18eb7c2076b882c9d762085d8d6
parentddeae8c8ac2681f5fb738f78df747782afa6ac15
re PR c++/62207 (ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in tsubst_copy, at cp/pt.c)

/cp
2019-04-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/62207
* pt.c (tsubst_copy): Deal with lookup_name not returing a variable.

/testsuite
2019-04-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/62207
* g++.dg/template/crash130.C: New.
* g++.dg/template/crash131.C: Likewise.

From-SVN: r270064
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash130.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash131.C [new file with mode: 0644]