[Bug c++/18497] error in parsing function template
zhaojiangbin at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 15 17:54:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list