[Bug c++/71450] [5/6/7 Regression] 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
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 23 16:13:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71450
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 23 15:59:25 2016
New Revision: 242767
URL: https://gcc.gnu.org/viewcvs?rev=242767&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr71450-1.C
trunk/gcc/testsuite/g++.dg/cpp0x/pr71450-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list