This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r169105 - in /trunk/gcc: cp/ChangeLog cp/semant...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 21 Jan 2011 21:34:26 -0000
- Subject: r169105 - in /trunk/gcc: cp/ChangeLog cp/semant...
Author: jakub
Date: Fri Jan 21 21:34:25 2011
New Revision: 169105
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169105
Log:
PR c++/47388
* semantics.c (begin_for_stmt): If -fno-for-scope, don't
assume init must be NULL if scope is NULL.
(begin_range_for_stmt): Likewise.
* g++.dg/cpp0x/range-for10.C: New test.
* g++.dg/template/for1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/range-for10.C
trunk/gcc/testsuite/g++.dg/template/for1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog