public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10852] Old for-scoping rules improperly used?
[not found] <bug-10852-6033@http.gcc.gnu.org/bugzilla/>
@ 2006-03-07 15:54 ` reichelt at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-07 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-03-07 15:54 -------
Here's an example where the code is invalid, but is accepted because
of the for-scope-warning machinery:
==================================
namespace N
{
int i;
}
int i;
void foo()
{
for (int i=0; i<10; ++i) ;
using namespace N;
i;
}
==================================
The problem is that we track old and new scoping rules simultaneously
to be able to issue warnings. This doesn't work properly in corner
cases like in this PR.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10852
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/10852] Old for-scoping rules improperly used?
[not found] <bug-10852-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-09 14:00 ` bangerth at gmail dot com
0 siblings, 0 replies; 3+ messages in thread
From: bangerth at gmail dot com @ 2011-10-09 14:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10852
Wolfgang Bangerth <bangerth at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at gmail dot com
--- Comment #6 from Wolfgang Bangerth <bangerth at gmail dot com> 2011-10-09 13:59:42 UTC ---
Still happens for gcc4.5.1.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/10852] Old for-scoping rules improperly used?
[not found] <20030519074600.10852.derrick@cco.caltech.edu>
@ 2004-03-10 16:48 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-10 16:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-10 16:48 -------
*** Bug 14515 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |christopher dot eltschka at
| |physik dot uni-regensburg
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10852
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-09 14:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-10852-6033@http.gcc.gnu.org/bugzilla/>
2006-03-07 15:54 ` [Bug c++/10852] Old for-scoping rules improperly used? reichelt at gcc dot gnu dot org
[not found] <bug-10852-4@http.gcc.gnu.org/bugzilla/>
2011-10-09 14:00 ` bangerth at gmail dot com
[not found] <20030519074600.10852.derrick@cco.caltech.edu>
2004-03-10 16:48 ` pinskia at gcc dot gnu dot org
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).