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++/25110] "expected primary-expression before ')' token" error when compiling templated method of templated class



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-27 00:04 -------
This is actually expected, you want:
f.template Func<0>();

Since f is dependent, we are not expecting Func to be a template so it parses
as a non template and then errors out as a<0 > () is invalid for anything
except a template.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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