This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11648] G++ parse error for simple template code
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2003 20:51:26 -0000
- Subject: [Bug c++/11648] G++ parse error for simple template code
- References: <20030723204230.11648.wwieser@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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>();
}