re PR c++/16012 (trouble with scope in for statements in templates)
authorRichard Henderson <rth@redhat.com>
Wed, 16 Jun 2004 17:59:07 +0000 (10:59 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 16 Jun 2004 17:59:07 +0000 (10:59 -0700)
commit894ca2c9ff6321673af96c42b1028db992b98943
treedd5662f9db85cb749d8b6177430ec74783e363cc
parente751adc3b1b146663267485a2dcf1ebe239a5c3d
re PR c++/16012 (trouble with scope in for statements in templates)

        PR c++/16012
        * semantics.c (begin_for_stmt, begin_for_stmt): Do put the init
        statement in FOR_INIT_STMT for templates.

From-SVN: r83253
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/init/for2.C [new file with mode: 0644]