c++/9887: Syntax error on explicit member function template argument in function template body
Martin Sebor
sebor@roguewave.com
Mon Mar 3 18:25:00 GMT 2003
bangerth@dealii.org wrote:
> Synopsis: Syntax error on explicit member function template argument in function template body
>
> State-Changed-From-To: open->closed
> State-Changed-By: bangerth
> State-Changed-When: Mon Mar 3 15:17:04 2003
> State-Changed-Why:
> Not a bug. You need to write
> x.template f<int>(); // syntax error
> (note the "template" keyword here).
It seems that it would save you (and users) a lot of time if the
diagnostic just said that. I wonder how difficult it would be to
enhance the parser to detect this (along with the missing typename)
as a special case and give a better error message.
Regards
Martin
>
> W.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9887
More information about the Gcc-bugs
mailing list