This is the mail archive of the gcc-help@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] |
why the following code cannot be compiled?
template <typename TC> class C { template <typename TF> void f() {} };
template <typename T> void test() { C<T> c; c.f<int>(); }
gcc-4.3.2 on "c.f<int>();" reports error: expected primary-expression before
âintâ
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |