labels don't work in template functions
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Tue Mar 24 06:12:00 GMT 1998
(At least) today's CVS snapshot breaks the following code:
-------- snipedee --------
template<class T>
void compute(T) {
goto Exit;
Exit: ;
}
main() {
compute(0);
}
-------- snipedee --------
complaining
In function `void compute<int>(int)':
test.cc:3: `Exit' undeclared (first use this function)
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