http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793
--- Comment #17 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-09-29 14:35:14 UTC --- (In reply to comment #16) > Thanks. Now in mainline we say this: > > 40793.C: In function ‘void f()’: > 40793.C:5:31: error: no matching function for call to ‘staticPrint()’ > 40793.C:5:31: note: candidate is: > 40793.C:2:6: note: template<class T, T t> void staticPrint() > 40793.C:2:6: note: template argument deduction/substitution failed: > 40793.C:5:31: error: ‘double’ is not a valid type for a template constant > parameter > > In 4.6.x we don't produce the last note and error message. What do you think? Well, I think it is even better than Clang now. The locations are a bit off, the first error should point to 5.1 and the last one to 5.13, but that was not the point of the original submitter and I am not volunteering to do the work, so if you are happy, close it as fixed.