This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22464] [3.4 Regression] ICE on classes in template functions which attempt closure
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2005 13:12:34 -0000
- Subject: [Bug c++/22464] [3.4 Regression] ICE on classes in template functions which attempt closure
- References: <bug-22464-8458@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from reichelt at gcc dot gnu dot org 2005-12-05 13:12 -------
Subject: Bug 22464
Author: reichelt
Date: Mon Dec 5 13:12:29 2005
New Revision: 108055
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108055
Log:
Backport:
2005-10-13 Mark Mitchell <mark@codesourcery.com>
PR c++/22464
* semantics.c (finish_id_expression): Issue errors about uses of
local variables in containing functions even in templates.
* g++.dg/template/crash41.C: New test.
Added:
branches/gcc-3_4-branch/gcc/testsuite/g++.dg/template/crash41.C
Modified:
branches/gcc-3_4-branch/gcc/cp/ChangeLog
branches/gcc-3_4-branch/gcc/cp/semantics.c
branches/gcc-3_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22464