[Bug c++/11814] Code with missing "template" keyword wrongly accepted

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 25 20:38:00 GMT 2005

------- Additional Comments From redi at gcc dot gnu dot org  2005-03-25 20:38 -------
This can be simplified to:

template <class T> void f()
  T t;
  t.f<>(0); //should be t.template f<>(0);

If either 'f' is renamed g++ correctly reports an error.

Comeau's online compiler behaves the same.

           What    |Removed                     |Added
                 CC|                            |redi at gcc dot gnu dot org


More information about the Gcc-bugs mailing list