]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/53492 (ICE in retrieve_specialization, at cp/pt.c:985)
authorJason Merrill <jason@redhat.com>
Mon, 10 Mar 2014 15:44:50 +0000 (11:44 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 10 Mar 2014 15:44:50 +0000 (11:44 -0400)
commit4d3f2fa687ec4c8cf6aa668f4c2eab4f298c3f8e
tree88eab3ba0706e5f72df74b8eab5b4eb752e653fb
parent31dad8091a44abef7ac099835ea2a241f1dc4057
re PR c++/53492 (ICE in retrieve_specialization, at cp/pt.c:985)

PR c++/53492
* parser.c (cp_parser_class_head): Also check PRIMARY_TEMPLATE_P
when deciding whether to call push_template_decl for a member class.
* pt.c (push_template_decl_real): Return after wrong levels error.

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