This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Templates break Declarations in for(;;) loops
- To: egcs-bugs at cygnus dot com
- Subject: Re: Templates break Declarations in for(;;) loops
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Wed, 7 Oct 1998 23:34:22 +0200 (MET DST)
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/