This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with your template printing change
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Subject: Problem with your template printing change
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 29 Sep 1999 01:19:24 -0700
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
Compiling the following test-case without -quiet (i.e., running
`cc1plus test.C' directly) causes `sorry' error messages to appear. I
think your code is probably not handling templates with multiple
levels of template parameters correctly.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
----------------------------------------------
template <class T>
int f(T);
template <class T>
struct S {
template <class U>
friend int f(U) { return 0; }
};
int k = f(2);
template <class T>
int g(T);
int h = g(7);
template <class T>
int g(T) {
S<T> si;
return 0;
}
int main()
{
}