re PR c++/71450 (ICE on invalid C++11 code on x86_64-linux-gnu: in tree check: expect...
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Nov 2016 15:59:25 +0000 (16:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Nov 2016 15:59:25 +0000 (16:59 +0100)
commit1b3314ddb15e6e4007035d1f6f823650c9dc70b8
treeb0a519db2d8e0c8c319bc3862eb6aa3d2c8ecf94
parente2df23288c44590ba0ea99f03a7f16b5d113376e
re PR c++/71450 (ICE on invalid C++11 code on x86_64-linux-gnu: in tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_base, at cp/search.c:203)

PR c++/71450
* pt.c (tsubst_copy): Return error_mark_node when mark_used
fails, even when complain & tf_error.

* g++.dg/cpp0x/pr71450-1.C: New test.
* g++.dg/cpp0x/pr71450-2.C: New test.

From-SVN: r242767
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr71450-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr71450-2.C [new file with mode: 0644]