This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42697] ice-on-legal-code: template class template function local objects
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2010 10:24:28 -0000
- Subject: [Bug c++/42697] ice-on-legal-code: template class template function local objects
- References: <bug-42697-2551@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from dodji at gcc dot gnu dot org 2010-01-17 10:24 -------
Subject: Bug 42697
Author: dodji
Date: Sun Jan 17 10:24:16 2010
New Revision: 155975
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155975
Log:
Fix PR c++/42697
gcc/cp/ChangeLog:
PR c++/42697
*pt.c (tsubst_decl): Get the arguments of a specialization from
the specialization template, not from the most general template.
gcc/testsuite/ChangeLog:
PR c++/42697
* g++.dg/template/crash94.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/crash94.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42697