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

RE: gcc template error?

2005-06-22 Thread Jason Mancini
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 // Line 1 class A { public: A() { }; ~A() { }; }; class B { public: B(); B(const A&

Re: gcc template error?

2005-06-22 Thread Andrew Pinski
On Jun 22, 2005, at 1:56 PM, Shelly Adhikari wrote: 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? I don't know if this is valid C++ or not but on the mainline we ICE so