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]

Re: Templates break Declarations in for(;;) loops


On Thu, 27 Aug 1998, Gerald Pfeifer wrote:
> With the current CVS snapshot I get the following error
> 
>   x.cc: In function `void f()':
>   x.cc:6: redeclaration of template parameter `w'
>   x.cc:4:  previously declared here `N w'
> [...]
> -------- snip --------
> // Build don't link:
> template<class N, class O>
> void f() {
>     for(N w=1;;);
> 
>     if(O w=1);
>     }
> -------- snip --------

Even though I never received any reply, this has been fixed for
egcs-2.92.11 19980928 and does not occur in 1.1 as well.

> What would be an appropriate place in the test suite to install it?
> Shall I install it?

Report closed.
Gerald
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/



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