This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16012] [3.5 regression] trouble with scope in for statements in templates


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]