]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/47388 (ICE: in begin_for_stmt, at cp/semantics.c:863 with -fno-for-scope...
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Jan 2011 21:34:25 +0000 (22:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Jan 2011 21:34:25 +0000 (22:34 +0100)
commit95cc031fd89f7e05a2653ec098105e29817ed6ea
tree31842ab7308fede4f5d7a2642f1c261de4853b35
parentabba182313a491dae23985a480944282c6a566a8
re PR c++/47388 (ICE: in begin_for_stmt, at cp/semantics.c:863 with -fno-for-scope and for(;;) inside a template)

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.

From-SVN: r169105
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/for1.C [new file with mode: 0644]