http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-11-30 23:52:05 UTC --- So with the example in comment #5, we get: t.cc: In function ‘void f()’: t.cc:5:31: error: no matching function for call to ‘staticPrint()’ t.cc:2:18: note: candidate is: template<class T, T t> void staticPrint() --- CUT --- Is that good enough?