This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/40793] "Error: no matching function for call to XYZ" doesn't display function-template-arguments


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]