This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40793] "Error: no matching function for call to XYZ" doesn't display function-template-arguments
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Sep 2011 12:20:51 +0000
- Subject: [Bug c++/40793] "Error: no matching function for call to XYZ" doesn't display function-template-arguments
- Auto-submitted: auto-generated
- References: <bug-40793-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793
--- Comment #16 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-29 12:20:51 UTC ---
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?