public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ville at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54430] [C++11] For-Loop: Scope of iterating variable begins too early Date: Thu, 01 Oct 2015 19:22:00 -0000 [thread overview] Message-ID: <bug-54430-4-TSpmwx7HBP@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-54430-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54430 --- Comment #8 from ville at gcc dot gnu.org --- Author: ville Date: Thu Oct 1 19:22:08 2015 New Revision: 228354 URL: https://gcc.gnu.org/viewcvs?rev=228354&root=gcc&view=rev Log: PR c++/54430 /cp 2015-10-01 Ville Voutilainen <ville.voutilainen@gmail.com> PR c++/54430 * name-lookup.c (push_binding): Make non-static. * name-lookup.h (push_binding): Declare it. * parser.c (cp_parser_range_for): Use it, get the range declaration away from the scope until the range expression has been parsed, then restore the declaration. /testsuite 2015-10-01 Ville Voutilainen <ville.voutilainen@gmail.com> PR c++/54430 * g++.dg/cpp0x/range-for30.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/range-for30.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/name-lookup.c trunk/gcc/cp/name-lookup.h trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2015-10-01 19:22 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-08-30 23:08 [Bug c++/54430] New: [C++11] Range Based For Loop lhs scoping issue mrks at koios dot de 2014-03-28 14:15 ` [Bug c++/54430] [C++11] For-Loop: Scope of iterating variable begins too early tclamb at ufl dot edu 2014-03-28 14:16 ` ppluzhnikov at google dot com 2014-03-28 14:17 ` ppluzhnikov at google dot com 2014-03-28 17:29 ` redi at gcc dot gnu.org 2015-08-09 7:49 ` akim.demaille at gmail dot com 2015-08-09 7:51 ` akim.demaille at gmail dot com 2015-08-17 0:52 ` miyuki at gcc dot gnu.org 2015-09-15 10:16 ` redi at gcc dot gnu.org 2015-10-01 19:22 ` ville at gcc dot gnu.org [this message] 2015-10-01 19:24 ` ville.voutilainen at gmail dot com 2015-10-05 8:53 ` paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-54430-4-TSpmwx7HBP@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).