Templates break Declarations in for(;;) loops
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Wed Oct 7 14:34:00 GMT 1998
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/
More information about the Gcc-bugs
mailing list