This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18497] error in parsing function template
- From: "zhaojiangbin at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2004 17:54:50 -0000
- Subject: [Bug c++/18497] error in parsing function template
- References: <20041115072126.18497.zhaojiangbin@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zhaojiangbin at yahoo dot com 2004-11-15 17:54 -------
(In reply to comment #0)
> The code in question:
> ==== begin ====
> struct C
> {
> template <typename T> void f() {}
> };
>
> template <typename T> void ff()
> {
> C c;
> c.f(); // <--
> }
> ==== end ====
Sorry there was a mistake in copying the sameple code. It should be:
==== begin ====
struct C
{
template <typename T> void f() {}
};
template <typename T> void ff()
{
C c;
c.f<T>(); // <--
}
==== end ====
Please note the difference in the marked lines.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18497