[Bug c++/24648] a template parse error

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 3 12:44:00 GMT 2005



------- Comment #2 from rguenth at gcc dot gnu dot org  2005-11-03 12:43 -------
You are missing a 'typename'

    void operator()(K k)
    {
        hm[k] = 999;
        IntHashMap::iterator itr = hm.find(k);
      ^^^
here.

IntHashMap is a dependent type.


-- 

rguenth at gcc dot gnu dot org changed:

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


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



More information about the Gcc-bugs mailing list