[Bug c++/16012] [3.5 regression] trouble with scope in for statements in templates
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jun 16 17:59:00 GMT 2004
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-16 17:59 -------
Subject: Bug 16012
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rth@gcc.gnu.org 2004-06-16 17:59:07
Modified files:
gcc/cp : ChangeLog semantics.c
Added files:
gcc/testsuite/g++.dg/init: for2.C
Log message:
PR c++/16012
* semantics.c (begin_for_stmt, begin_for_stmt): Do put the init
statement in FOR_INIT_STMT for templates.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4102&r2=1.4103
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.397&r2=1.398
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/for2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16012
More information about the Gcc-bugs
mailing list