Re: gcc template error?

2005-06-22 Thread Shelly Adhikari
Jason Mancini wrote: I suspect this line is the source of your problems: friend T* func(T* p); Y isn't a template parameter here, but a (concrete?) class named "Y". The below compiles with 3.4.3 anyways... Regards, -Jason Yep, that line is the source of my problems. Can you send me a pointer

gcc template error?

2005-06-22 Thread Shelly Adhikari
Hello Guys, Thw following program is giving an error. Is the program incorrect (If possible, please cite relevant sections from the C++ standard)? Should I file a bug? % /usr/local/gcc-4.0.0/bin/g++ template.cxx template.cxx: In function 'T* func(T*) [with X = B, Y = A]': template.cxx:36: i