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]

Problem with your template printing change



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()
{
}


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