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]

labels don't work in template functions


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



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