From: nathan Date: Fri, 19 Sep 2003 09:28:05 +0000 (+0000) Subject: cp: X-Git-Tag: upstream/4.9.2~76657 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8306960d1e631851fed807bd8ea5098a6ec93b3e;p=platform%2Fupstream%2Flinaro-gcc.git cp: PR c++/12232 * pt.c (instantiate_class_template): Increment processing_template_decl around the tsubst of a template member function. testsuite: PR c++/12232 * g++.dg/template/memtmpl2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71563 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6b0fa8a..a94120f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2003-09-19 Nathan Sidwell + + PR c++/12232 + * pt.c (instantiate_class_template): Increment + processing_template_decl around the tsubst of a template member + function. + 2003-09-19 Gabriel Dos Reis * decl.c (cxx_scope_descriptor): Fix thinko. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 878bcda..ce668dd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-09-19 Nathan Sidwell + + PR c++/12232 + * g++.dg/template/memtmpl2.C: New test. + 2003-09-18 Mark Mitchell PR target/11184 diff --git a/gcc/testsuite/g++.dg/template/memtmpl2.C b/gcc/testsuite/g++.dg/template/memtmpl2.C new file mode 100644 index 0000000..15ede59 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/memtmpl2.C @@ -0,0 +1,15 @@ +// { dg-do compile } + +// Copyright (C) 2003 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 18 Sep 2003 + +// PR c++/12232. ICE + +template class TPL; + +template struct X { + template