[C++ PATCH, committed] Fix PR9030 (main trunk version)

Wolfgang Bangerth bangerth@ticam.utexas.edu
Thu Jan 9 16:24:00 GMT 2003


> >> -------------------------------
> >> class O {
> >>    struct I { I (int); };
> >>
> >>    template <class T_>
> >>    friend typename O::I f ();;
> >> };
> >>
> >> template <class T_>
> >> typename O::I f () { return 1; };
> >>
> >> struct X {
> >>    void g() { f<int>(); }
> >> };
> >> -------------------------------
> 
> Here, there is no TEAMPLATE_INFO because O is not a template class.

But we use the typename keyword (erroneously), and the error message is 
profoundly unhelpful.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth             email:            bangerth@ticam.utexas.edu
                              www: http://www.ticam.utexas.edu/~bangerth/




More information about the Gcc-patches mailing list