https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67621

--- Comment #2 from physik3 at gmx dot net ---
Hi.

(In reply to Jonathan Wakely from comment #1)
> (In reply to physik3 from comment #0)
> >     foo.foo<int>(); // this line gives a compiler error
> 
> This needs to be:
> 
>         foo.template foo<int>();
> 
> See https://womble.decadent.org.uk/c++/template-faq.html#disambiguation

Thank you, you are completely right.

Would it be hard to implement that GCC prints a message like "Did you forget
keyword template?" in this situation?

Reply via email to