This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Strange behavior with templates and G++


On 17 February 2011 17:26, Pascal Francq wrote:
> In fact, since it is related on how g++ is implementing its heritage mechanism
> in C++, I was thinking it was the right mailing-list. In fact, by adding a
> convenient method in Super2, the code compiles :
> ? ? ? ?template<class C> inline void Test(C* ptr) {Super<C>::Test(ptr);}
> This trick let me suppose that a problem may exist in the way g++ links a call
> to the corresponding method when it handles template classes.

Unless you're proposing a way to fix it (which you're not, you're
asking if there's something wrong, and there isn't) then gcc-help is
the right list.


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