This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH, committed] Fix PR9030 (main trunk version)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- Cc: Mark Mitchell <mark at codesourcery dot com>, Kriang Lerdsuwanakij <lerdsuwa at users dot sourceforge dot net>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: 09 Jan 2003 17:53:30 +0100
- Subject: Re: [C++ PATCH, committed] Fix PR9030 (main trunk version)
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0301091023270.15620-100000@gandalf.ticam.utexas.edu>
Wolfgang Bangerth <bangerth@ticam.utexas.edu> writes:
| > >> -------------------------------
| > >> 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.
Hmm. Can you explain to me the erronous use of typename here?
-- Gaby