This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16012] [3.5 regression] trouble with scope in for statements in templates
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2004 08:02:07 -0000
- Subject: [Bug c++/16012] [3.5 regression] trouble with scope in for statements in templates
- References: <20040616075527.16012.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-16 08:02 -------
Confirmed, only happens in templates.
Here is another example:
template<int> void foo()
{
for (int i=0 ;;) ;
int i;
}
void bar()
{
foo<0>();
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-06-16 08:02:03
date| |
Summary|[3.5 regression] trouble |[3.5 regression] trouble
|with scope in for statements|with scope in for statements
| |in templates
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16012