------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-16 00:33 ------- The issue here (in the source) is that the overloaded of " qHash(key);" is only the qHash functions above that call so it does not see the template below that call which is the function you would like to call.
This is how standard C++ works (with the correction from DR 197). This is a dup of bug 2922 which was fixed by rejecting invalid code and fixing wrong code for 4.1. The way to fix the code is to add a forward to the template function. *** This bug has been marked as a duplicate of 2922 *** *** This bug has been marked as a duplicate of 2922 *** -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |RESOLVED Keywords|rejects-valid | Known to fail|4.1.0 4.2.0 | Known to work|4.0.2 | Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26311