------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-30 20:59 ------- I don't think this is a bug. What is happening is that compiler cannot figure out that you want sort<int> as there are no agruments to sort which is based on the template agrument (except for ones which are dependent on the type). ICC rejects this code also.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24588