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]
Other format: [Raw text]

[Bug c++/11648] G++ parse error for simple template code


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11648



------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-23 20:51 -------
The workaround is to do (ignore my previous example):
struct A 
{ 
        template<class T>T *foo(); 
}; 
 
template<class T>void bar(A *a) 
{ 
        a->template foo<T>(); 
}


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